Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 311356

Summary: Double anonymous types in if statements confuses method overriding code completion proposals
Product: [Eclipse Project] JDT Reporter: Remy Suen <remy.suen>
Component: CoreAssignee: Ayushman Jain <amj87.iitr>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: anchakrk, mauromol, Olivier_Thomann
Version: 3.6   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug

Description Remy Suen CLA 2010-05-03 07:50:17 EDT
I20100429-1549

If I try CC'ing the class below, I don't get suggestions for overriding methods like clone() or toString().

class AnonymousTypeBlocksCompletion {
  void block() {
    if (true) {
      new Object() {};
    }
    if (true) {
      new Object(){};
    }
  } // <- ctrl+space here
}
Comment 1 Eclipse Genie CLA 2018-12-31 00:36:13 EST
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.

If you have further information on the current state of the bug, please add it. 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.
Comment 2 Mauro Molinari CLA 2019-01-02 02:57:31 EST
I can still reproduce in 2018-09, will try in 2018-12 as soon as possible.
Comment 3 Mauro Molinari CLA 2019-01-02 03:40:35 EST
I can still reproduce in 2018-12, too.