I am running to a very strange issue where I have ...
# serialization
a
I am running to a very strange issue where I have a
sealed
hierarchy. I can easily serialize and deserialize these. However, I removed one of these data classes of the hierarchy because it wasn'tused anywhere. Everything builds correctly, but I have a simple serialize and deserialize test. And that one fails with:
Copy code
java.lang.ClassNotFoundException: com.dsmp.app.serialization.graphics.ResponsiveGraphicDTO$CircleDTO
    at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
    at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
THis makes sense, because the CircleDTO is used nowhere anymore. It does not make sense at all that it throws an exception. I removed the caches already, cleaned my builds and cleaned the Gradle user dir cache, but all to no avail. Kotlin 1.9.21 and serialization 1.6.2
When removing the ~/.gradle dir, everything works again. When removing another obsolete data class it fails again.