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 80551 - Should not be possible to reroute Generalization link from class to interface
Summary: Should not be possible to reroute Generalization link from class to interface
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: Diagram Class (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Yang Su
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-19 11:22 UTC by bugbridge
Modified: 2007-01-23 14:24 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Reroute Generalization Link (107.19 KB, image/png)
2006-07-19 11:24 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bugbridge 2006-07-19 11:22:32 UTC
Original submitter: ads

Description:
- Create two classes on diagram.
- Create interface.
- Draw Generalization link from one class to another class.
- Change destination of link from Class to interface.
- Look at source code .

Class contains "extends" keyword instead of "implements". 
So we have code corruption.
Comment 1 Alexandr Scherbatiy 2006-07-19 11:24:45 UTC
Created attachment 31985 [details]
Reroute Generalization Link
Comment 2 Craig Conover 2006-08-14 21:00:26 UTC
Review: bug is as stated, but it's not a problem with synchronization because it
is doing what it is told to do by the model meta-data. However, the
generalization of a interface from a class element should be prevented, so I am
changing the subcategory to "diagram class".
Comment 3 Yang Su 2007-01-12 21:49:29 UTC
Enhanced logic to validate generalization source/target relationship.
Generalization between two interfaces is valid.
Comment 4 Yang Su 2007-01-12 21:53:54 UTC
integrated
Comment 5 Andrew Korostelev 2007-01-23 14:24:04 UTC
verified in all-nbms-griffin-070121