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=32948>. 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=32948 Summary: javac task passes -source option to javac 1.2/1.1 which does not support -source option Product: Ant Version: 1.7Alpha (nightly) Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P3 Component: Core tasks AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Thanks for your efforts. Problem: Javac 1.1, 1.2 and 1.3 don't support -source option. The javac task passes -source option to javac when compiler="javac1.2" or compiler="javac1.1" with fork="yes" and executable="/path/javac". According to the manual, even with fork="yes", it should not pass -source option. Here is an example which should succeed, but fails actually. <javac srcdir="." source="1.3" compiler="javac1.2" fork="yes" executable="/path/javac"/> will generate an error message like; javac: -source is an invalid option. Cause: DefaultCompilerAdoptor.setupModernJavacCommandlineSwitches() called from JavacExternal.java passes -source when !assumeJava13(). Resolution: That should be !assumeJava13() && !assumeJava12() && !assumeJava11(). Patch and Test: I'll attach a patch to the CVS HEAD and a test build file which works fine with all JDK versions. Note that the modification does not affect to any other java compilers such as Jikes and GCJ. -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]