Bug 99627

Summary: synthetic constructor rendered with argument type '1' (one)
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: loskutov
Version: 3.1   
Target Milestone: 3.3 RC4   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Markus Keller CLA 2005-06-13 09:10:43 EDT
I20050610-1757 (3.1RC2)

- Open LinkedHashMap<K, V>#ValueIterator from an 1.5 jdk with source attachment
- In the Outline, Package Explorer, etc., disable the filter for synthetic
constructors

There's a package-private synthetic constructor 'ValueIterator(LinkedHashMap, 1)'
The type argument '1' (one) cannot be correct.
Comment 1 Dirk Baeumer CLA 2005-06-13 18:23:31 EDT
The signature of the parameter returned from JDT/Core in this case is
Ljava.util.LinkedHashMap$1; which then results in UI rendering the type name 1.
Without more information from JDT/Core I don't see how we can do here any better. 

Moving to JDT/Core.
Comment 2 Jerome Lanneluc CLA 2005-06-16 07:49:03 EDT
Signature.toString("LLinkedHashMap$1;") returns "LinkedHashMap.1" which is
indeed questionable.
Comment 3 Philipe Mulet CLA 2005-06-16 08:53:57 EDT
is this new ?
Comment 4 Jerome Lanneluc CLA 2005-06-16 09:01:34 EDT
No, same problem existed in 3.0
Comment 5 Jerome Lanneluc CLA 2007-06-21 11:23:31 EDT

*** This bug has been marked as a duplicate of bug 180713 ***