Bug 35220 - CodeAssist - method of anonymous type should not be proposed
Summary: CodeAssist - method of anonymous type should not be proposed
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.0 M6   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-18 10:34 EST by David Audel CLA
Modified: 2003-12-16 11:06 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 David Audel CLA 2003-03-18 10:34:56 EST
1) create the class X.java
import javax.swing.JPanel;
public class X {
  void foo(){
    new JPanel(){
      class InnerPanel extends JPanel {
        public InnerPanel() {
          setLayout(<cursor>
        }
      }
    };
  }
}
2) do ctrl+space at cursor location.
There is two proposals with the same completion. One of these proposals is the 
method of the anonymous type. This completion should not be proposed.
Comment 1 David Audel CLA 2003-03-18 10:40:31 EST
The symptoms of this bug are the same of the bug 33172, but i don't think that 
is the same problem.
Comment 2 David Audel CLA 2003-11-28 10:24:20 EST
Fix for bug 35232 correct this bug.

Fixed.
Comment 3 Frederic Fusier CLA 2003-12-16 11:06:46 EST
Verified with build I200312160010