Bug 76472

Summary: Duplicate entries in the constant pool for some methods
Product: [Eclipse Project] JDT Reporter: Olivier Thomann <Olivier_Thomann>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 M3   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Olivier Thomann CLA 2004-10-18 11:31:21 EDT
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.
Comment 1 Olivier Thomann CLA 2004-10-21 10:59:09 EDT
Fixed and released in HEAD.
Regression tests added in ClassFileReaderTest.test071
Comment 2 David Audel CLA 2004-11-03 10:29:42 EST
Verified for 3.1M3 with build I20041102