Hello :wave: Any suggestions on how one would go a...
# serialization
d
Hello 👋 Any suggestions on how one would go around debugging
Copy code
org.jetbrains.kotlin.util.KotlinFrontEndException: Front-end Internal error: Failed to analyze declaration Variables
File being compiled: (35,3) in <Foo.kt>
The root cause java.lang.AssertionError was thrown at: org.jetbrains.kotlin.resolve.lazy.descriptors.LazyClassDescriptor.getModality(LazyClassDescriptor.java:564)
...
Caused by: java.lang.AssertionError: Recursion detected in a lazy value under LockBasedStorageManager@2f5a443e (TopDownAnalyzer for JVM)
It blows up on something that "shouldn't" blow up, i.e.
Copy code
@Serializable
public data class Variables(
  public val simpleCriteria: SimpleArgumentInput? = null,
)

@Serializable
public data class SimpleArgumentInput(
  public val max: Double? = null,
  public val min: Double? = null,
  public val newName: String? = null,
)
Copy code
kotlinJvmTargetVersion = 1.8
kotlinVersion = 1.6.21
kotlinCoroutinesVersion = 1.6.1
kotlinxSerializationVersion = 1.3.2
running on M1 mac
Copy code
Gradle 7.4
JVM 11.0.15 (Eclipse Adoptium 11.0.15+10)
wondering whether it is some conflict between Spring Boot and serialization plugin
it is SpringBoot plugin issue... this works fine from Ktor server
a
What's the full
Foo.kt
, with imports? I'm curious what's on line 35
d
Thats the
Variables
data class