Verified Commit d10e5713 authored by Yannick Schinko's avatar Yannick Schinko
Browse files

Try it the other way round again

parent 7f4456dd
Pipeline #420 passed with stages
in 2 minutes and 27 seconds
......@@ -14,8 +14,8 @@ public class ReflectionHacker {
// Module javaBaseModule = moduleLayer.findModule("java.base").get();
// Module ownModule = ReflectionHacker.class.getModule();
//
// ownModule.addExports("java.lang", javaBaseModule);
// ownModule.addOpens("java.lang", javaBaseModule);
// javaBaseModule.addExports("java.lang", ownModule);
// javaBaseModule.addOpens("java.lang", ownModule);
// }
public static void allowJreAccess()
......@@ -53,9 +53,9 @@ public class ReflectionHacker {
moduleClass
.getMethod("addExports", String.class, moduleClass)
.invoke(ownModule, "java.lang", javaBaseModule);
.invoke(javaBaseModule, "java.lang", ownModule);
moduleClass
.getMethod("addOpens", String.class, moduleClass)
.invoke(ownModule, "java.lang", javaBaseModule);
.invoke(javaBaseModule, "java.lang", ownModule);
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment