Bug 92569

Summary: Confusing API naming of Signature: getSignatureSimpleName
Product: [Eclipse Project] JDT Reporter: Martin Aeschlimann <martinae>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.3   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Martin Aeschlimann CLA 2005-04-25 08:43:52 EDT
20050425

For inner types like 'a.b.Outer.Inner' getSignatureSimpleName returns 'Outer.Inner'.

To be consistent with other naming, a simple name should only be 'Inner'.
'Outer.Inner' would be called 'type qualifier name' (e.g. as in
IType.getTypeQualifiedName)

As this API is 3.1 it might be worth it to deprecate the current version and
replace it by API 'getTypeQualifierName'.
Comment 1 Jerome Lanneluc CLA 2006-03-28 11:39:50 EST
Are you saying that Signature#getSignatureSimpleName("La.b.Outer.Inner;") returns "Outer.Inner" ?
Comment 2 Martin Aeschlimann CLA 2006-03-28 12:03:50 EST
Yes, the spec says:
 getSignatureSimpleName("Ljava.util.Map$Entry") -> "Map.Entry"

As mentioned, this API uses the terms 'SimpleName' in a misleading (unconsistent) way. You can't really call 'Map.Entry' a simple name, can you?

I suggest to reopen: Deprecated the method and give it the correct name. 'getTypeQualifiedName'
Comment 3 Jerome Lanneluc CLA 2006-03-29 06:51:10 EST
reopening
Comment 4 Jerome Lanneluc CLA 2006-03-29 06:51:32 EST
Post 3.2
Comment 5 Eclipse Webmaster CLA 2009-08-30 02:35:31 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.