Bug 82558 - [select] Text selection fail on constructor when parameters are parameterized types
Summary: [select] Text selection fail on constructor when parameters are parameterized...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 3.1 M5   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 75642
  Show dependency tree
 
Reported: 2005-01-11 09:38 EST by Frederic Fusier CLA
Modified: 2005-02-14 11:49 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frederic Fusier CLA 2005-01-11 09:38:00 EST
Using HEAD.

Test case:
Test.java
  public class Test<T> {
	Test(T t) {}
	Test(Test<String> ts) {}
  }
  class X {
	Test<String> test = new Test<String>(new Test<String>(""));
  }

Put cursor on Test of "...= new Test<String>..." and hit F3: get a beep and
error message status: Current text selection does not resolve to a Java element

Set as major due to the fact that it blocks tests to be written for bug 75642.
Comment 1 David Audel CLA 2005-01-11 12:19:13 EST
Fixed and test added
  Resolve_1_5#test0089()

Problem is inside SelectionRequestor#acceptSourceMethod(). Erasure of the
argument's type must be used instead of parameterized type.
Comment 2 Jerome Lanneluc CLA 2005-02-14 11:49:54 EST
Verified in I20050209 + JDT Core v_536