Summary: | NPE on Open Declaration on reference to generic type | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Markus Keller <markus.kell.r> |
Component: | Core | Assignee: | Jerome Lanneluc <jerome_lanneluc> |
Status: | CLOSED FIXED | QA Contact: | |
Severity: | major | ||
Priority: | P3 | CC: | Olivier_Thomann |
Version: | 3.1 | ||
Target Milestone: | 3.1 RC2 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Markus Keller
2005-06-01 12:12:35 EDT
Also fails when the referenced type is not an inner type: - xy/Try.java: package xy; public class Try { private <T> void failing(IInterface<T> arg) {} } interface IInterface<T> { } - set caret into 'IInterface' in parameter of method failing(..) and press F3 +1 for RC2 In this case we cannot use the method's key as it has not been completely reolved (we found the selection node while processing the method's parameters). Changed format of type variable key in the case it is not a leaf key to use the declaring class + method source start. Adapted BindingKeyParser and its subclasses to this new format. Added regression tests BatchASTCreationTests#test065() and BindingKeyTests#test043(). *** Bug 87513 has been marked as a duplicate of this bug. *** Verified in N20050606-0010 + JDT/Core HEAD Verified for 3.1 RC2 using build I20050610-0010 |