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

Bug 407883

Summary: Wrong compiler error message for a member interface
Product: [Eclipse Project] JDT Reporter: Deepak <dvohra09>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED WONTFIX QA Contact: Sasikanth Bharadwaj <sasikanth.bharadwaj>
Severity: normal    
Priority: P3 CC: jarthana, pwebster, shankhba
Version: 4.2.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard: stalebug

Description Deepak CLA 2013-05-13 10:09:47 EDT
If an interface is declared as a member interface in a top level interface and with modifier final the compiler error message is wrong.

public interface Sample {
	final interface MemberInterface{
	}
}

The compiler error message is:
Illegal modifier for the member interface MemberInterface; only public, protected, private, static & abstract are permitted

But a member interface in a top level interface cannot be private or protected.
Comment 1 Jay Arthanareeswaran CLA 2013-05-14 05:52:59 EDT
Shankha, please take a look at this.
Comment 2 Eclipse Genie CLA 2020-04-02 08:55:08 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.