Bug 227502 - [1.5][compiler] Bad error message for abstract enum
Summary: [1.5][compiler] Bad error message for abstract enum
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.4 M7   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-17 04:59 EDT by David Audel CLA
Modified: 2008-04-28 11:17 EDT (History)
2 users (show)

See Also:


Attachments
Proposed patch (11.70 KB, patch)
2008-04-19 19:45 EDT, Philipe Mulet CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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