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 6788] - javac target attribute under suns jdk1.4
Date Mon, 04 Mar 2002 12:43:31 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6788>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6788

javac target attribute under suns jdk1.4

neilasmyth@yahoo.com changed:

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



------- Additional Comments From neilasmyth@yahoo.com  2002-03-04 12:43 -------
Not an Ant bug but a JDK bug:

The bytecode generated from the "target" option on javac is
invalid for execution on non-1.4 JVMs under certain circumstances.

In particular, in 1.4 there is a new method on
StringBugger: append(StringBuffer), which was not present
previously. Because no such mthod existed in prior versions
of the JVM, sode such as

StringBuffer a = new StringBuffer();
a.append(new StringBuffer("b"));

worked fine as ".toString()" was automatically appended.
This no longer happens as a result of the new StringBuffer
method.

It seems to me the target option should be enhanced to
append the ".toString()" in the case where the target is a
version prior to 1.4.

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


Mime
View raw message