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.
When I reverse engineer the UML core source code I get an exception when creating a diagram that contains all of the model elements in the metamodel package and its children. The exception is in the orthogonal router.
The problem is that the link to self logic uses the orthogonal router. Because of other issues with the orthogonal router the answer is to replace the use of the orthogonal router with a custom router that can only be used to route a link to self.
The exception is: java.lang.AssertionError at org.netbeans.modules.visual.router.OrthogonalSearchRouterCore.search(OrthogonalSearchRouterCore.java:184) at org.netbeans.modules.visual.router.OrthogonalSearchRouterCore.route(OrthogonalSearchRouterCore.java:107) at org.netbeans.modules.visual.router.OrthogonalSearchRouter.routeConnection(OrthogonalSearchRouter.java:163) at org.netbeans.api.visual.widget.ConnectionWidget.calculateRouting(ConnectionWidget.java:527) at org.netbeans.modules.visual.layout.ConnectionWidgetLayout.layout(ConnectionWidgetLayout.java:109) at org.netbeans.api.visual.widget.Widget.layout(Widget.java:1350) at org.netbeans.api.visual.widget.Widget.layout(Widget.java:1342) at org.netbeans.api.visual.widget.LayerWidget.layout(LayerWidget.java:86) at org.netbeans.api.visual.widget.Widget.layout(Widget.java:1342) at org.netbeans.api.visual.widget.Scene.layoutScene(Scene.java:312) at org.netbeans.api.visual.widget.Scene.validate(Scene.java:393) at org.netbeans.api.visual.widget.SceneComponent.setBounds(SceneComponent.java:110) at javax.swing.OverlayLayout.layoutContainer(OverlayLayout.java:216)
The fix for this issue also solves our problem for the issue 148114. I can not close the issue 148114 because the problem for 148114 is now in a different implementation that belongs to the visual library.
instead of orthogonal router usage we may need to use direct router+bend points.
Fixed http://hg.netbeans.org/uml-main/rev/17e596e05903
Reviewed
verified in build 20081006.