Bug 76472 - Duplicate entries in the constant pool for some methods
Summary: Duplicate entries in the constant pool for some methods
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M3   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-18 11:31 EDT by Olivier Thomann CLA
Modified: 2004-11-03 10:29 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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