Bug 68842 - [1.5] AST: parameter type binding: getKey seems wrong
Summary: [1.5] AST: parameter type binding: getKey seems wrong
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M2   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-29 05:26 EDT by Martin Aeschlimann CLA
Modified: 2004-09-22 08:41 EDT (History)
0 users

See Also:


Attachments

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