Closed mikroskeem closed 7 years ago
One good example is feature/disable-player-data-saving branch. Server dies off with IncompatibleClassChangeError error
Very likely that event classes and such are affected from this problem.
Debug event listener mechanism had clazz.asSubclass(Event.class) and that threw ClassCastException though.
clazz.asSubclass(Event.class)
ClassCastException
I did some debugging and got this this:
net.minecraft.launchwrapper.LaunchClassLoader@3c130745
sun.misc.Launcher$AppClassLoader@42a57993
...class.getInterfaces()[0].getClassLoader()
One good example is feature/disable-player-data-saving branch. Server dies off with IncompatibleClassChangeError errorVery likely that event classes and such are affected from this problem.
Debug event listener mechanism had
clazz.asSubclass(Event.class)
and that threwClassCastException
though.I did some debugging and got this this:Server classes:MinecraftServer classloader:net.minecraft.launchwrapper.LaunchClassLoader@3c130745
IPlayerFileData interface classloader:net.minecraft.launchwrapper.LaunchClassLoader@3c130745
current IPlayerFileData implemetation classloader:net.minecraft.launchwrapper.LaunchClassLoader@3c130745
After replacement:
new IPlayerFileData implementation:sun.misc.Launcher$AppClassLoader@42a57993
Orion IPlayerFileData...class.getInterfaces()[0].getClassLoader()
:sun.misc.Launcher$AppClassLoader@42a57993