Bug 72105

Summary: [1.5] NPE in SelectionEngine.selectFrom
Product: [Eclipse Project] JDT Reporter: Tobias Widmer <tobias_widmer>
Component: CoreAssignee: David Audel <david_audel>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: 3.1 M2   
Hardware: PC   
OS: All   
Whiteboard:
Attachments:
Description Flags
stack trace none

Description Tobias Widmer CLA 2004-08-17 12:00:23 EDT
Build I200408122000: SelectionEngine cannot handle formal generic type 
parameter

Steps to reproduce:
- Create a class as follows

package p;
class D {
    static <T> T get(T t) {
        return t;
    }
}

- Move the mouse cursor over
   ...T get(<Mouse here>T t) {...

- Texthover implementation calls SelectionEngine.selectFrom
Comment 1 Tobias Widmer CLA 2004-08-17 12:02:34 EDT
Created attachment 14014 [details]
stack trace
Comment 2 David Audel CLA 2004-08-20 09:00:48 EDT
Problem: SelectionNodeFound is thrown during parameters resolution and 
parameters bindings after selection node are null.
Comment 3 David Audel CLA 2004-08-20 10:48:08 EDT
Fixed and test added
  ResolveTests_1_5#test0016 -> test0021

Selector location is used instead of method parameters
Comment 4 David Audel CLA 2004-09-22 10:17:56 EDT
Verified in I200409212000.