ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
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
https://issues.apache.org/bugzilla/show_bug.cgi?id=46387





--- Comment #2 from Peter Reilly <peterreilly@apache.org>  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 New.java       
New.java:18: 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 - IBoth.java and not New.java

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

4) the New.java 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: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message