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

Bug 231089

Summary: [pull up] wrong error for method from anonymous to declare abstract in destination
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: minor    
Priority: P3    
Version: 3.4   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug

Description Markus Keller CLA 2008-05-08 06:04:04 EDT
I20080507-2000

public class Try {
	public static void main(String[] args) {
		new C() {
			public void m() {}
		};
	}
}

class C {
	
}


Pull up m(), choose 'Declare abstract in destination'.
=> Error "Class 'C' cannot be made abstract because it is instantiated".

The error should only be issued for instantiations of C that don't declare an anonymous type.
Comment 1 Eclipse Genie CLA 2019-10-16 08:54:23 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.

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.