Bug 82558

Summary: [select] Text selection fail on constructor when parameters are parameterized types
Product: [Eclipse Project] JDT Reporter: Frederic Fusier <frederic_fusier>
Component: CoreAssignee: David Audel <david_audel>
Status: VERIFIED FIXED QA Contact:
Severity: major    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 75642    

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