Anyone know how to resolve the kotlin.Result clas...
# coroutines
r
Anyone know how to resolve the kotlin.Result classncast exception issue?
g
Which version of Kotlin? There are a few known bugs related on inline classes, which were fixed in 1.4.20, we was not be able to update on 1.4.x because of them, but everything works fine on 1.4.20-m2
r
1.4.0
g
Yeah, I think it one of those issues You use suspend function with result, right?
r
Yep
g
We use 1.4.20-m2 in production now, so far so good
r
Alright let me check. Thanks for the info
The fix was only introduce in 1.4.20 milestone 2? Not 1.4.10?
Sigh.. M2 , didnt resolve it 😔
g
Yes, it's not fixed 1.4.10
Interesting, are you sure that everything is recompiled? Maybe some issue of incremental build, not everything is recompiled after update
r
Yea. I think I understand the origin of the issue. I think it only happens when you wrap a java class in a result object ... and than call it in suspend
g
wrap a java class? What do you mean?
r
As In the Kotlin class is has a dependency on a generated java class
g
not sure that it related