Bug 130117 - [compiler] Wrong error generated "The method Inner in type Inner can only set one of public / protected / private"
Summary: [compiler] Wrong error generated "The method Inner in type Inner can only set...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2 M6   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-02 08:48 EST by Benno Baumgartner CLA
Modified: 2006-03-28 06:27 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 Benno Baumgartner CLA 2006-03-02 08:48:04 EST
I20060301-0800 + core from HEAD

Given:
package x.a;
public interface IFace {
	private class Inner {}
}
Two errors are generated:
The interface member type Inner can only be public
The method Inner in type Inner can only set one of public / protected / private

The second one seams to be nonsense... This one leads to a test failure in JDT/UI.
Comment 1 Philipe Mulet CLA 2006-03-02 09:26:04 EST
Reproduced. Feels like a ripple from fix for bug 117758
Comment 2 Philipe Mulet CLA 2006-03-02 10:10:41 EST
Tuned flag initialization MethodScope#checkAndSetModifiersForConstructor(...)
Added InnerEmulation#test126.

Fixed
Comment 3 David Audel CLA 2006-03-28 06:27:10 EST
Verified for 3.2 M6 using build I20060328-0010