Bug 130117

Summary: [compiler] Wrong error generated "The method Inner in type Inner can only set one of public / protected / private"
Product: [Eclipse Project] JDT Reporter: Benno Baumgartner <benno.baumgartner>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.2   
Target Milestone: 3.2 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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