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

[EMAIL PROTECTED] changed:

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



------- Additional Comments From [EMAIL PROTECTED]  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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to