Bug 72238 - [1.5] CodeAssist - Wrong completion inside parameterized type
Summary: [1.5] CodeAssist - Wrong completion inside parameterized type
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M2   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-19 05:55 EDT by David Audel CLA
Modified: 2004-09-22 08:50 EDT (History)
0 users

See Also:


Attachments

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