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 86376

Summary: Generalization between class role and interface role should be replaced with implementation
Product: uml Reporter: bugbridge <bugbridge>
Component: Diagram ClassAssignee: issues@uml <issues>
Status: NEW ---    
Severity: blocker CC: sj-nb
Priority: P4    
Version: 5.x   
Hardware: PC   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description bugbridge 2006-10-03 13:41:26 UTC
Original submitter: sergeyp

Description:
reproducible with 050522_3:

steps to reproduce:
in new uml-implementation project
1. create package with scoped class diagram
2. add class role 'a' to the diagram
3. add interface role 'b' to the diagram
4. draw generalization from 'a' to 'b'
generalization appears on the diagram
generalization should be replaced with implemenation on the diagram
xxx@xxxx 2005-05-24 13:55:56 GMT

According to UML it is ok to create a generalization between a class and an
interface.  However, Java does not allow a class to generalize from an
interface, so RoundTrip should either not allow the relationship creation or
transform it to an interface.
tspiva 2005-05-24 14:12:41 GMT

reproducible with 061001, may be the issue in handling of pattern application to
java model