Bug 132703 - Completion fails within non-static anonymous inner class
Summary: Completion fails within non-static anonymous inner class
Status: RESOLVED DUPLICATE of bug 132679
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-21 11:37 EST by Barry Kaplan CLA
Modified: 2006-03-21 11:48 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 Barry Kaplan CLA 2006-03-21 11:37:42 EST
In the code snippet below, ctrl-space expansion fails at the comment. 
The code compiles and runs correctly.

public class Context {

  private int value = 10;

  public abstract class Callback {
      public abstract void doit(int value) {}
  }
}

public class ContextTest {

  private Context context = new Context();

  public void test() {
    context.new Callback() {
      public void doit(int value) {
        Set foo = new HashSet();

        foo. // expansion fails here with message in status bar:
             //   "Callback cannot be resolved to a type"  
      }
    }
  }

}
Comment 1 Markus Keller CLA 2006-03-21 11:48:30 EST

*** This bug has been marked as a duplicate of 132679 ***