Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 332027 - auto completing anonymous inner type duplicates (almost) whole class - code assist
Summary: auto completing anonymous inner type duplicates (almost) whole class - code a...
Status: CLOSED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows Vista
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Ayushman Jain CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-07 09:48 EST by pengcheng CLA
Modified: 2020-04-23 00:52 EDT (History)
1 user (show)

See Also:


Attachments
java source (3.09 KB, text/plain)
2010-12-07 09:53 EST, pengcheng CLA
no flags Details
error source after code completion (5.75 KB, text/plain)
2010-12-07 09:59 EST, pengcheng CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description pengcheng CLA 2010-12-07 09:48:13 EST
Build Identifier: 20100617-1415

pls. see attachment source line 114 (in main method). Reproducible.

briefly:

class A {
   public static interface B {..}
   
   public static void main(String[] args) {
      ...
      new A( arg1, new B() {...} ); // auto-complete "new B()" causes duplication!
   }

}

Reproducible: Always
Comment 1 pengcheng CLA 2010-12-07 09:53:02 EST
Created attachment 184720 [details]
java source

(swt version 3.557)
Comment 2 pengcheng CLA 2010-12-07 09:59:19 EST
Created attachment 184721 [details]
error source after code completion

(at line 197:
Providerabstract class Type1291733629976 implements swt.text.AssistErrDemo.Provider {
)
Comment 3 Eclipse Genie CLA 2020-04-23 00:52:17 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.