Summary: | [1.5] Enum constructor cannot be public or protected | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Markus Keller <markus.kell.r> | ||||
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> | ||||
Status: | VERIFIED FIXED | QA Contact: | |||||
Severity: | minor | ||||||
Priority: | P3 | ||||||
Version: | 3.1 | ||||||
Target Milestone: | 3.1 M5 | ||||||
Hardware: | PC | ||||||
OS: | Windows XP | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Markus Keller
2005-01-25 14:45:10 EST
Created attachment 17436 [details]
Apply on HEAD
Possible patch that would report:
----------
1. ERROR in c:\tests_sources\X.java
(at line 4)
public X(int i, int j) { }
^^^^^^^^^^^^^^^
Illegal modifier for the enum constructor; only private is permitted.
----------
1 problem
Patch looks good. Fixed and released in HEAD. Regression tests added in EnumTest.test068, 069 and 070. Verified in I20050215-2300 |