Bug 42856 - CodeAssist - Does not work after an inner type reference
Summary: CodeAssist - Does not work after an inner type reference
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.0 M4   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-10 07:13 EDT by David Audel CLA
Modified: 2003-10-08 07:46 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 2003-09-10 07:13:51 EDT
1) create the class A
package p;
public class A {
  public class AException extends Exception {}
}
2) create the class X
import p.A;
public class X {
  void foo() {
    try {
    } catch (A.AException e) {
      bar(<cursor>);
    }
  }
  void bar() {}
}
3) do ctrl+space at cursor location
there is no proposal

4) modify the class X
import p.A;
public class X {
  void foo() {
    try {
    } catch (Exception e) {//Exception replace A.AException
      bar(<cursor>);
    }
  }
  void bar() {}
}
5) do ctrl+space at cursor location
method bar() is proposed
Comment 1 David Audel CLA 2003-09-11 05:34:21 EDT
CompletionParser#invocationType was not initialized after a qualified type 
reference.

Fixed.
Comment 2 David Audel CLA 2003-10-08 07:46:06 EDT
Verified.