Re: Compile error

Steve Loughran <[email protected]>
Newsgroups gmane.comp.java.smartfrog.devel
Message-ID <[email protected]>
Haavard Bjerke wrote:
> Yes, it works with "-source 1.4" -- a bit strange, since I'm using 1.4.2_09.
> 

That is ant: it defaults to source=1.2, regardless of the java version 
you use.

This was deliberately done for portability -it ensures that a build file 
which doesn't specify a version will compile consistently across 
java1.3, 1.4, 1.5, whatever JVMs, even if variables are called "enum", 
methods called "assert", etc, etc. Ant1.7's <rmic> will do the same 
thing with rmic, after sun went and changed the default values of that 
command line app.


-steve


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.