2 Replies Latest reply: Jan 26, 2010 8:29 AM by 791266 RSS

    Replacing the java.* Classes

    843798
      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?