I am using Eclipse and Netbeans, now preferring Netbeans. If developing a system class that is in the java library (such as FileReader) is there any way to add that class into an application and have the local one supercede the library copy?
The idea is to be able to work on augmenting a specific class at a time while still using the normal jdk.
Specifically I am working with java.lang.StringBuilder and java.io.FileWriter.
I wrote a modified StringBuilder class. If I create it in my directory: java/lang/FastStringBuilder
javac complains that I am trying to compile a restricted package java.lang.
If I rename the package, then it cannot inherit from AbstractStringBuilder which is not public.
They are making this way harder than it needs to be.