2 Replies Latest reply on Jan 26, 2010 2:29 PM by 791266

    Replacing the java.* Classes

      I want to change the code to say, java.lang.Class for debugging/monitoring. I know the java.exe has a -Xbootclasspath/p:path option for us to prepend the new core api classes to the classpath and the source code for the core api classes are available in the jdk. But the problem is it seems that the javac.exe does not accept a class named java.*. I can use byte code instrumentation tools like Javassist/BCEL to inject code to existing system classes. But is it possible to modify the source code directly and recompile them without having to use byte code instrumenation?