Bug 72238

Summary: [1.5] CodeAssist - Wrong completion inside parameterized type
Product: [Eclipse Project] JDT Reporter: David Audel <david_audel>
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: Windows XP   
Whiteboard:

Description David Audel CLA 2004-08-19 05:55:49 EDT
build I20040812

1) create X.java
public class X <T> {
  X<ZZZ#cursor#<
}
2) do ctrl + space at cursor location

The completion AST is
public class X<T> {
  <CompleteOnType:ZZZ>;
  public Test() {
  }
}

but should be
public class X<T> {
  X<<CompleteOnType:ZZZ>>;
  public Test() {
  }
}

The problem is the same with
public class X <T> {
  X<ZZZ#cursor#.
}

The ast is correct with
public class X <T> {
  X<ZZZ#cursor#
}

or
public class X <T> {
  X<ZZZ#cursor#>
}
Comment 1 David Audel CLA 2004-08-19 07:18:43 EDT
Fixed and tests added
  GenericsCompletionParserTest#test0178()
  GenericsCompletionParserTest#test0179()
  GenericsCompletionParserTest#test0180()
  GenericsCompletionParserTest#test0181()
Comment 2 David Audel CLA 2004-09-22 08:50:06 EDT
Verified in I200409212000.