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 95865 - Should not gen code for generalizations to an interface's own inner interface
Summary: Should not gen code for generalizations to an interface's own inner interface
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: Code Generation (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Viktor Lapitski
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-17 05:53 UTC by Peter Lam
Modified: 2007-09-13 18:36 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 Peter Lam 2007-02-17 05:54:01 UTC
Reference to issue 86300 for this issue.
UML also allows an interface to generalize its own inner interface, and Java
doesn't support this either.

Repro steps:
- create Java-Model uml project
- create class diagram
- put two interfaces and name them I1 and I2
- add nested link from I2 to I1 (I2 is nested interface of I1)
- add Generalization link from I1 to I2
The following uncompilable code is generated. 

public interface I1 extends I1.I2 {
    public interface I2 {
    }

}
Comment 1 Peter Lam 2007-03-20 23:30:08 UTC
low use case not currently impacting our installed user base.
Comment 2 Viktor Lapitski 2007-07-06 03:09:43 UTC
fixed. For classes as well.
Comment 3 Sherry Zhou 2007-09-13 18:36:14 UTC
Verified in trunk build 070913

Now the code is generated as:
public interface I1 {

   public interface I2 {

    }

}