one user is getting with one of out lib the follow...
# announcements
e
one user is getting with one of out lib the following:
java.lang.LinkageError: loader constraint violation: when resolving method "imgui.ImGui.begin(Ljava/lang/String;Lkotlin/reflect/KMutableProperty0;I)Z" the class loader (instance of net/fabricmc/loader/launch/knot/KnotClassLoader) of the current class, net/aaa/bbbb/gui/screen/ModScreen, and the class loader (instance of sun/misc/Launcher$AppClassLoader) for the method's defining class, imgui/ImGui, have different Class objects for the type kotlin/reflect/KMutableProperty0 used in the signature
since he updated from 1.4.0 to 1.4.10, has anyone encountered something similar?
p
at a guess, you have two different versions of kotlin-reflect that are loaded by different classloaders
e
sorry, but what kotlin-reflect would ever have to do with this?
p
kotlin/reflect/KMutableProperty0
made me think about that - and i have had issues with kotlin-reflect and class loaders before, because of how it’s loaded from stdlib. but it’s a wild guess at something to check
e
Ok, thanks for the hint, I'll try investigate on
n
until someone PRs 1.4.10 to FLK you may have to stay on 1.4.0 or jij the stdlib yourself
e
flk?
@Nikky
n
the FLK shadows (jar-in-jar mechanism of the loader) kotlin-reflect