Hello :wave: I just hit a compiler issue (on a sim...
# compiler
d
Hello 👋 I just hit a compiler issue (on a simple
SpringBootTest
class) with
Copy code
Recursion detected in a lazy value under LockBasedStorageManager@3d437e74 (TopDownAnalyzer for JVM)
The root cause java.lang.AssertionError was thrown at: org.jetbrains.kotlin.resolve.lazy.descriptors.LazyClassDescriptor.getModality(LazyClassDescriptor.java:538)
when I have both
Spring
and
kotlinx.serialization
plugins applied (test is starting a SpringBoot app and then using WebClient to pass kotlinx serialized Strings - its an integration test for a lib). Fails with both Kotlin
1.5.31
and
1.6.10
. Removing one of the plugins solves the compilation issue but it means I cannot test the above scenario. Sounds like this is the issue -> https://youtrack.jetbrains.com/issue/KT-41341 Just wondering if anyone hit similar problem and whether they have any suggestions for some workarounds? --- edit --- correction: Exception is not actually thrown from
SpringBootTest
but from a generated
Serializable
class that is invoked during a test. Serialization using
kotlinx.serialization
works fine on the generated class when Spring plugin is omitted.
p
@Dariusz Kuc I think I’m hitting this - did you manage to find any workaround at all?