ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 46387] Ant's javac task cannot compile what plain Sun SDK javac can
Date Fri, 12 Dec 2008 15:35:11 GMT

--- Comment #2 from Peter Reilly <>  2008-12-12 07:35:11 PST ---
1) javac -version for sun's java is javac 1.6_05 and not javac 1.6.0-internal

I think that the -internal is ibm's version.

The New class does not compile for sun's javac - it gives the following
bizzare error:
 /usr/java/jdk1.6.0_04/bin/javac incompatible types
found   : java.util.List<E>
required: java.util.List<T>
               return arrayList( _elts );
1 error

2) the reported errors deals with another class - and not

3) javac (boh sun and ibm) has issues in dealing with generics across classes
and java sources - due to erasure.

4) the definition looks a bit odd - I am sure that one needs ? extends
T, or something similar.

5) ant does not do anything special to compile classes - it justs calls 
Javac.main() with the relavent command line options.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message