Bug 68842

Summary: [1.5] AST: parameter type binding: getKey seems wrong
Product: [Eclipse Project] JDT Reporter: Martin Aeschlimann <martinae>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: 3.1 M2   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Martin Aeschlimann CLA 2004-06-29 05:26:16 EDT
20040629

1. In the following code get the IBindings of Y and X;
  both IBinding.getKey() return a string 'java.lang.Object' what seems wrong

public abstract class C<Y,X> implements Comparator<X> {
    protected Function<Y,X> function;
}
Comment 1 Jim des Rivieres CLA 2004-07-29 16:20:53 EDT
I've clarified the spec for getKey() to suggest how to make suitable keys
for new bindings that come with JLS3 features.
Comment 2 Olivier Thomann CLA 2004-08-16 14:31:05 EDT
Now you get:
YC

I will discuss this key with Jim, when he is back from vacations.
Comment 3 Olivier Thomann CLA 2004-08-16 14:36:49 EDT
Fixed and released in HEAD.
Regression test added. The format of the key might change. I think the current
spec is still not good enough to remove ambiguities.
Comment 4 David Audel CLA 2004-09-22 08:41:48 EDT
Verified in I200409212000.