Bug 98115 - Field completion failed to propose a field declared into an innerclass
Summary: Field completion failed to propose a field declared into an innerclass
Status: CLOSED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 RC2   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-02 10:38 EDT by Olivier Oeuillot CLA
Modified: 2005-06-10 12:17 EDT (History)
0 users

See Also:


Attachments
Problem context (537 bytes, text/plain)
2005-06-02 10:41 EDT, Olivier Oeuillot CLA
no flags Details
Java project which contains completion problem (4.78 KB, application/x-compressed)
2005-06-03 06:25 EDT, Olivier Oeuillot CLA
no flags Details

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