Summary: | [compiler][1.5] can create annonymous class of an enum | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Martin Aeschlimann <martinae> | ||||||
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> | ||||||
Status: | VERIFIED FIXED | QA Contact: | |||||||
Severity: | normal | ||||||||
Priority: | P3 | ||||||||
Version: | 3.0 | ||||||||
Target Milestone: | 3.1 M5 | ||||||||
Hardware: | PC | ||||||||
OS: | Windows XP | ||||||||
Whiteboard: | |||||||||
Attachments: |
|
Description
Martin Aeschlimann
2005-01-27 12:42:35 EST
Created attachment 17521 [details]
Apply on QualifiedAllocationExpression
We should complain. Enums cannot be subclassed by user code (only enum constant bodies can do so). Thanks for finding it The patch doesn't work. The test needs to be: receiverType.isEnum() && type != null Created attachment 17522 [details]
Apply on QualifiedAllocationExpression
I had figured this too. Added EnumTest#test065. Fixed Verified in I20050214 |