This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 239173 - Enumerations should not be able to be subclassed
Summary: Enumerations should not be able to be subclassed
Status: CLOSED WONTFIX
Alias: None
Product: Tigerstripe (Archived)
Classification: Technology
Component: Core (show other bugs)
Version: 0.3S4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 0.3M2   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-01 19:25 EDT by Chris Hartley CLA
Modified: 2011-11-29 10:41 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Hartley CLA 2008-07-01 19:25:16 EDT
I have looked at the UML2 spec and Enumerations are types, which doesn't seem to have subclassing.

From http://java.sun.com/docs/books/tutorial/java/javaOO/enum.html
 
Note: All enums implicitly extend java.lang.Enum. Since Java does not support multiple inheritance, an enum cannot extend anything else. 

If OSS/J use this feature then I suggest that we have an option to disable it in the profile, else I suggest that it be removed completely.
Comment 1 Navid Mehregani CLA 2010-07-15 15:10:56 EDT
Still a problem in the latest version of TS.
Comment 2 Navid Mehregani CLA 2011-11-29 10:41:40 EST
> I have looked at the UML2 spec and Enumerations are types, which doesn't seem
> to have subclassing.
> 
> From http://java.sun.com/docs/books/tutorial/java/javaOO/enum.html
> 
> Note: All enums implicitly extend java.lang.Enum. Since Java does not support
> multiple inheritance, an enum cannot extend anything else. 
> 
> If OSS/J use this feature then I suggest that we have an option to disable it
> in the profile, else I suggest that it be removed completely.


Tigerstripe doesn't use Java's 'enum' type, it represents Tigerstripe Enums as abstract classes which CAN extend other classes.  Marking this as won't fix.  I'm hesitant to change the editor due to backward compatibility issues. (In reply to comment #0)