PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL BE LOST SOMEWHERE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3045 *** shadow/3045 Wed Aug 8 08:46:13 2001 --- shadow/3045.tmp.9040 Fri Aug 17 13:17:44 2001 *************** *** 15,18 **** +============================================================================+ | DESCRIPTION | In JDK1.4, Javac needs a -source 1.4 capability so that we can ! compile in/out asserts. --- 15,56 ---- +============================================================================+ | DESCRIPTION | In JDK1.4, Javac needs a -source 1.4 capability so that we can ! compile in/out asserts. ! ! ------- Additional Comments From [EMAIL PROTECTED] 2001-08-17 13:17 ------- ! To (temporarily) allow Ant to compile Java 1.4 code with assertions... ! ! Get the source distribution. (I worked with the 1.4Beta1 distribution.) ! Add: ! if ( attributes.getAsserts() ) ! { ! cmd.createArgument().setValue("-source"); ! cmd.createArgument().setValue("1.4"); ! } ! ! to org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter around line ! 250. ! ! Add: ! private boolean assertsOn; ! public void setAsserts( boolean newAssertsOn ) { ! assertsOn = newAssertsOn; ! } ! public boolean getAsserts() { ! return assertsOn; ! } ! ! to org.apache.tools.ant.taskdefs.Javac around line 120. ! ! Recompile. ! I reinserted the class files into my ant.jar. ! Setting the <javac> task attribute asserts="on" will add "-source 1.4" to your ! javac command line. ! ! Use at your own risk. I haven't found any problems, but I only spent an hour ! figuring this out, so it probably does very bad things. I had sold Ant hard to ! my boss, and he wanted to see it compile 1.4 code with assertions. My back was ! to the wall. Sorry for any mess. Hope this gets fixed soon. ! ! Brad ! [EMAIL PROTECTED]
