[Solved] order of classloader in java during compile time and run time
First of all, this test won’t work in Java 9 or later. Attempting to compile the String class will give this error: java/lang/String.java:1: error: package exists in another module: java.base package java.lang; ^ On Java 8, I get the behavior you see. Assuming that the tweaked String class is in the same source tree, the … Read more