Bug 72105 - [1.5] NPE in SelectionEngine.selectFrom
Summary: [1.5] NPE in SelectionEngine.selectFrom
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 3.1 M2   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-17 12:00 EDT by Tobias Widmer CLA
Modified: 2004-09-22 10:17 EDT (History)
0 users

See Also:


Attachments
stack trace (707 bytes, text/plain)
2004-08-17 12:02 EDT, Tobias Widmer CLA
no flags Details

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