Bug 96410

Summary: Incorrect information in selection resolved key
Product: [Eclipse Project] JDT Reporter: Philipe Mulet <philippe_mulet>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 RC1   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Philipe Mulet CLA 2005-05-24 06:50:55 EDT
Build 3.1m7

On following code, the hover on 'get(null)' shows occurrences of 'F' where I
would expect substitution with '?' instead.

import java.util.List;

class Key<E extends Key<E>> {}
class Store<F extends Key<F>> {
	F get(F f) { return null; }
}

public class X<T> {
	Store<?> store;
	Key<?> key = store.get(null);
}
Comment 1 Jerome Lanneluc CLA 2005-05-25 10:00:06 EDT
Removed ParameterizedMethodBinding#computeUniqueKey(...).
Changed ParameterizedGenericMethodBinding#computeUniqueKey(...) to use the
'originalMethod' unique key.
Adapted BindingKeyResolver and KetToSignature to this new format.

Changed BatchAstCreationTests and resolveTests_1_5 to use this new format.
Added regression test BindingKeyTests#test035() and test036().
Comment 2 David Audel CLA 2005-05-27 09:24:37 EDT
Verified in i20050527-0010