Community
Participate
Working Groups
Using 2.1: Test case: public class TestCase { public static void main(String[] args) { args.clone(); } } We generate wrong bytecodes: public static void main(String[] args); /* Method descriptor #15 ([Ljava/lang/String;)V */ Code attribute: /* Stack: 1, Locals: 1 */ 0 aload_0 1 invokevirtual #19 <Method java.lang.Object#clone() java.lang.Object> 4 pop 5 return Jikes 1.18 produces the right bytecodes: 0 aload_0 1 invokevirtual #12 <Method [Ljava.lang.String;#clone() java.lang.Object> 4 pop 5 return For more information, please refer to this bug report: http://developer.java.sun.com/developer/bugParade/bugs/4329886.html
Fixed when targeting 1.4 JRE.
*** Bug 37548 has been marked as a duplicate of this bug. ***
Verified