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
This method locates the resource through the system class loader (see getSystemClassLoader()).
That means that, if Asmble itself is loaded by something other than the system class loader, this call will fail. IMO it would be better to replace the ClassReader(RuntimeHelpers::class.java.name) call with something along the lines of ClassReader(RuntimeHelpers::class.java.getClassLoader().getResourceAsStream(RuntimeHelpers::class.java.name.replace('.', '/') + ".class")) (forgive me if I messed up the syntax; I don’t know Kotlin).
The text was updated successfully, but these errors were encountered:
asmble.compile.jvm.SyntheticFuncBuilder.buildIndirectBootstrap
callsClassReader(RuntimeHelpers::class.java.name)
. Per the documentation:According to the documentation of that method in turn:
That means that, if Asmble itself is loaded by something other than the system class loader, this call will fail. IMO it would be better to replace the
ClassReader(RuntimeHelpers::class.java.name)
call with something along the lines ofClassReader(RuntimeHelpers::class.java.getClassLoader().getResourceAsStream(RuntimeHelpers::class.java.name.replace('.', '/') + ".class"))
(forgive me if I messed up the syntax; I don’t know Kotlin).The text was updated successfully, but these errors were encountered: