Community
Participate
Working Groups
Compile this example: public class X { public static void main(String[] args) { long[] tab = new long[] {}; System.out.println(tab.clone()); System.out.println(tab.clone()); } } Disassemble it and you can see that the call to clone() creates two entries in the constant pool.
Fixed and released in HEAD. Regression tests added in ClassFileReaderTest.test071
Verified for 3.1M3 with build I20041102