This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 90177 - It should not be allowed to Draw Generalization link from enumeration to Enumeration
Summary: It should not be allowed to Draw Generalization link from enumeration to Enum...
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: Code Generation (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Viktor Lapitski
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-28 13:38 UTC by Andrew Korostelev
Modified: 2008-09-18 22:12 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Korostelev 2006-11-28 13:38:24 UTC
filed just to describe problem with generalization link from enum to enum
separately.

It is now allowed to draw Generalization link from Enumeration to Enumeration
elements on class diagram.
And source file generated for source element is empty.

This ability should be disabled in java-model uml project.
But it is valid and should still be possible in independant uml project.
Comment 1 Andrew Korostelev 2006-11-28 13:39:20 UTC
the following related issues are filed already:
issue 78453 - It is possible to draw 'Generalization' link from/to Enumeration
element
issue 87501 - Drawing Generalization link from enumeration to interface generate
empty code
Comment 2 George Vasick 2007-05-17 18:35:43 UTC
Planned for drawing area upgrade after NB 6.0.
Comment 3 George Vasick 2007-05-18 00:20:36 UTC
Should not use resolved/later status.
Comment 4 George Vasick 2007-06-28 22:31:56 UTC
Targeted in drawing area redesign.
Comment 5 George Vasick 2007-07-04 00:47:01 UTC
Restoring original priority and using the standard NB waiver process.
Comment 6 George Vasick 2008-01-02 17:26:05 UTC
Diagram area bugs waived for 6.0 will also be waived for 6.1.
Comment 7 Trey Spiva 2008-05-14 22:19:40 UTC
Actually why should this not be allowed.  It is valid UML.  I understand that in the Java model we want to make the model fit Java syntax.  However we could 
always generate the code correctly.  

If you have a enumeration that should extend another enumeration, the generated code should simply have a enumeration that contains the literals from both 
the super enumeration and the subenumerations.  This makes the enumeration more expressive than the source code (which is good) and does not require 
duplication (which also good).

Therefore I am moving this to code generation.
Comment 8 Joanne Lau 2008-06-18 19:58:14 UTC
Still exists in 6.5
Comment 9 Viktor Lapitski 2008-09-16 21:25:22 UTC
http://hg.netbeans.org/uml-main/rev/17b61c4acb17
Comment 10 Trey Spiva 2008-09-17 18:09:23 UTC
Reviewed
Comment 11 Peter Lam 2008-09-18 22:11:53 UTC
verified in build 20080918. Codes generated now.
Comment 12 Peter Lam 2008-09-18 22:12:24 UTC
verified