bypass getCallerClass in registerAsParallelCapable
All checks were successful
/ Build BaseBand Loader (push) Successful in 1m8s
All checks were successful
/ Build BaseBand Loader (push) Successful in 1m8s
This commit is contained in:
parent
b512f48ad3
commit
31ff41f96e
1 changed files with 3 additions and 1 deletions
|
@ -67,7 +67,9 @@ public class CustomClassLoader extends ClassLoader implements Util {
|
|||
throw new IllegalStateException(MixinService.getService().getClass().toString());
|
||||
}
|
||||
|
||||
registerAsParallelCapable();
|
||||
Method m = Class.forName("java.lang.ClassLoader.ParallelLoaders").getDeclaredMethod("register", Class.class);
|
||||
m.setAccessible(true);
|
||||
m.invoke(null, CustomClassLoader.class);
|
||||
|
||||
Field parent = ClassLoader.class.getDeclaredField("parent");
|
||||
parent.setAccessible(true);
|
||||
|
|
Loading…
Add table
Reference in a new issue