Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 5009601
Votes 0
Synopsis Bring enum implementation up to date with its spec
Category java:compiler
Reported Against 1.4
Release Fixed 1.5(tiger-b46)
State 10-Fix Delivered, bug
Priority: 3-Medium
Related Bugs 5005748 , 5009574 , 5017797 , 5017799 , 5022907 , 5022937 , 5029076 , 5035528
Submit Date 08-MAR-2004
Description
Attached to the CCC proposal corresponding to this bug report is the latest JSR-201 spec draft for enum types (labeled "Preliminary Proposed Final Draft 2").  There are three substantive changes in this draft:

(1)  All enum constructors are implicitly private.  The compiler should implement this behavior.

(2) The use of the abstract and final modifiers on enum types is prohibited.  The compiler should generate a compile-time error if a program uses either of these modifiers on an enum-type.

(3) It is illegal to reflectively instantiate an enum type.  
Constructor.newInstance() will need new checks. (Class.newInstance() should then behave properly as it is implemented in terms of Constructor.newInstance().)
Work Around
 
Evaluation
Will aim for beta2.

  xxxxx@xxxxx   2004-03-08
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang