ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 33486] - [compile] take javac relative to JAVA_HOME and only if that fails from CLASSPATH or OS path (to avoid getting "Unsupported major.minor version 49.0")
Date Thu, 10 Feb 2005 11:29:42 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33486>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33486


peterreilly@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From peterreilly@apache.org  2005-02-10 12:29 -------
I am going to close this as FIXED in cvs (see part 2 below).
A couple of points.

1) setting CLASSPATH is evil (tm)
   this has been the root cause of a huge number of strange
   things happening. In the next release of ant, an extra
   command line argument -noclasspath will be supported.

2) in this case, there is a bug in ant 1.6.2 when the CLASSPATH
   contains a directory, the bug is that jars in the directory
   is loaded into the classloader - this is not correct behaviour

3) ant code detects where the tools.jar is and adds it to the
   the classpath - it is done at the end of the adding so the
   tools.jar is at the end of lookup for Javac class. A Javac
   eariler in the classpath will be picked up first. This is
   not a bug, the user has given ant an incorrect environment, so
   the consequences are going to be undetermined.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message