Bug 227502

Summary: [1.5][compiler] Bad error message for abstract enum
Product: [Eclipse Project] JDT Reporter: David Audel <david_audel>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jerome_lanneluc, philippe_mulet
Version: 3.4   
Target Milestone: 3.4 M7   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed patch none

Description David Audel CLA 2008-04-17 04:59:57 EDT
build I20080415-1646

public class X {
	abstract enum E {
		
	}
}

With this test case there is the following error message:
'Illegal modifier for the member enum E; only public, protected, private, static & abstract are permitted.'

The message should not say that 'abstract' is permitted.
Comment 1 Philipe Mulet CLA 2008-04-19 19:43:24 EDT
Beyond error message, the problem type also contains invalid modifier (abstract) left in place.
Comment 2 Philipe Mulet CLA 2008-04-19 19:44:44 EDT
Added EnumTest#test147-152
Comment 3 Philipe Mulet CLA 2008-04-19 19:45:14 EDT
Created attachment 96726 [details]
Proposed patch
Comment 4 Philipe Mulet CLA 2008-04-21 06:47:02 EDT
Released for 3.4M7

Fixed
Comment 5 Jerome Lanneluc CLA 2008-04-28 11:17:58 EDT
Verified for 3.4M7 using I20080427-2000