You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am making mod with gradle composite build for common code(not dependent with minecraft).
I have interface me.ddayo.aris.CoroutineProvideron common code to inject some method into object. Inside object, I made custom coroutine provider function like this:
@OptIn(ExperimentalTypeInference::class)
fun <T> coroutine(@BuilderInference block:suspendSequenceScope<CoroutineReturn<T>>.() ->Unit)
=LuaCoroutineIntegration(sequence(block))
But I cannot invoke this method because of linkage error.
The full error message is:
Caused by: java.lang.LinkageError: loader constraint violation in interface itable initialization:
when resolving method "me.ddayo.aris16.client.lua.ClientFunction.coroutine(Lkotlin/jvm/functions/Function2;)Lme/ddayo/aris/CoroutineProvider$LuaCoroutineIntegration;"
the class loader (instance of cpw/mods/modlauncher/TransformingClassLoader) of the current class,
me/ddayo/aris16/client/lua/ClientFunction, and the class loader (instance of sun/misc/Launcher$AppClassLoader)
for interface me/ddayo/aris/CoroutineProvider have different Class objects for the type kotlin/jvm/functions/Function2 used in the signature
This is result when I execute dependency task(I removed subdependencies of minecraft because they are so long...):
I am making mod with gradle composite build for common code(not dependent with minecraft).
I have interface
me.ddayo.aris.CoroutineProvider
on common code to inject some method into object. Inside object, I made custom coroutine provider function like this:But I cannot invoke this method because of linkage error.
The full error message is:
This is result when I execute dependency task(I removed subdependencies of minecraft because they are so long...):
Thanks
The text was updated successfully, but these errors were encountered: