Slackbot
08/03/2022, 2:51 PMChris Lee
08/03/2022, 2:55 PMjava.lang.Class.getEnumConstants()
and NoClassDefFoundErrors. Have seen cases where plugins assume every run is a clean environment, which isn’t the case with the Gradle Daemon (by design), resulting in classloader pollution / corruption.Martin
08/03/2022, 2:59 PMgetEnumConstants
is somehow expected at this point. What caught me off guard is that until I thought about stopping the daemon I had no clue at all what it could beMartin
08/03/2022, 3:00 PM--stacktrace
so I guess it was silently recorderd. Second crash got me NoClassDefFound
, which was actually misleading as the class was thereMartin
08/03/2022, 3:01 PMChris Lee
08/03/2022, 3:01 PMVampire
08/03/2022, 3:51 PMNoClassDefFoundError
I've seen so far were follow-up problems after some static initializer threw an error as indeed JVM does not try to load the class again after initialization failed but throws NoClassDefFoundError
, not to be confused with ClassNotFoundException
.