There is actually a good reason. If the 1.5 classes are missing, the
chances that a 1.5 compiled class will run are slim. This is what Andrew
John Hughes was trying to address with his proposal to implement the 1.5
classes as much as possible (using 1.4 sources). I haven't thought about
it deeply, but on the surface that seems like it could be a good idea.



Actually I have doubts at this point. Javac 1.5/5 compiles all its "-target 1.5" stuff with the help of java.lang.StringBuilder
instead of java.lang.StringBuffer. This little difference makes all code that would normally run in a 1.4 environment unusable.
The funny thing is that StringBuilder (and attached interfaces Appendable, CharSequence) make no use of 1.5 features.


So this is my vote for adding support for 1.5 bytecode addition as well as 'source 1.5'-independent (helper) classes.

cu
Robert


_______________________________________________ Classpath mailing list [EMAIL PROTECTED] http://lists.gnu.org/mailman/listinfo/classpath

Reply via email to