Bug 98115

Summary: Field completion failed to propose a field declared into an innerclass
Product: [Eclipse Project] JDT Reporter: Olivier Oeuillot <oeuillot>
Component: CoreAssignee: David Audel <david_audel>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 RC2   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Problem context
none
Java project which contains completion problem none

Description Olivier Oeuillot CLA 2005-06-02 10:38:44 EDT
A field declared into an innerclass, can not be completed, if the user edit the
second method of the innerclass. (It works fine in the first method !?)

See attachment for more details.
Comment 1 Olivier Oeuillot CLA 2005-06-02 10:41:25 EDT
Created attachment 22231 [details]
Problem context
Comment 2 David Audel CLA 2005-06-02 12:04:55 EDT
In your test case IMixerListener, MixerEvent, AbstractMixerDeltaVisitor,
IPlayer, IMixerDelta and CoreException can be resolved or they are missing ? 
Comment 3 Olivier Oeuillot CLA 2005-06-02 12:17:45 EDT
(In reply to comment #2)
> In your test case IMixerListener, MixerEvent, AbstractMixerDeltaVisitor,
> IPlayer, IMixerDelta and CoreException can be resolved or they are missing ? 

All these classes exist, and compile without any problem.
Comment 4 Olivier Oeuillot CLA 2005-06-03 05:30:40 EDT
I can create a Java project with theses classes if you want debug.
(If it can help you ...)
Comment 5 David Audel CLA 2005-06-03 05:50:12 EDT
I failed to reproduced the problem.

I will be very happy if you can give me a Java Project that reproduce the problem.
Comment 6 Olivier Oeuillot CLA 2005-06-03 06:25:05 EDT
Created attachment 22303 [details]
Java project which contains completion problem
Comment 7 David Audel CLA 2005-06-03 06:37:54 EDT
Problem reproduced with the attached project. thanks.
Comment 8 David Audel CLA 2005-06-03 10:53:28 EDT
Simplest test case:

public class Test {
  Object var = new Object() {
    void bar() {
      int i = 0;
    }
    void foo() {
      bar
    }
  };
}
Comment 9 Philipe Mulet CLA 2005-06-06 05:58:53 EDT
+1 for RC2
Comment 10 David Audel CLA 2005-06-06 06:37:07 EDT
Fixed an test added
  CompletionParserTest2#test0152()
Comment 11 Olivier Thomann CLA 2005-06-06 15:46:01 EDT
Verified using N20050606-0010 + JDT/Core HEAD
Comment 12 Jerome Lanneluc CLA 2005-06-10 12:17:56 EDT
Verified with I20050610-0010