db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Hillegas <Richard.Hille...@Sun.COM>
Subject Re: Requiring Java 5 compiler
Date Tue, 18 Sep 2007 13:56:02 GMT
Dag H. Wanvik wrote:
> Rick Hillegas <Richard.Hillegas@Sun.COM> writes:
>> Would anyone object to our requiring that developers use a Java 5 or
>> later compiler to build Derby? I believe that we would still require
>> the presence of the 1.4 libraries and the expectation would continue
>> to be that the compiler must compile down to 1.4 classes.
> AFAIK, that's not possible in the general case, cf tools like
> Retroweaver http://retroweaver.sourceforge.net/).
> Dag
You are right. The compiler won't let you compile from Java 5 source 
down to 1.4 classes. We would not be able to use Java 5 features in our 
old code. However, using the Java 5 compiler would make the following 

1) Optional optimizations of engine code to take advantage of features 
introduced by later VMs.

2) New tools which take advantage of extensions added in later versions 
of Java. E.g., JMX-based tools--JMX is included in J2SE from version 5.0 on.

3) Tests which verify that user code, built under later versions of 
Java, plays well when it runs inside Derby functions and procedures.


View raw message