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.
Steps to reproduce: - Create a Class diagram - Put interface element on the diagram and name it - Go to source of the Interface element - Change 'interface' keyword to 'class' ------------------------------------------ public class MyInterface { } ------------------------------------------ - Go to the diagram Interface element was transformed to the Class element but name of element is still in italic type - Select the Class element - Go to the property of the Class element 'Abstract' property is set but source code in spite of the fact that source code does not contain 'abstract' keyword
Created attachment 32650 [details] java.lang.IllegalStateException:
Review: The abstract keyword appears as expected. Class name is still italicized, but that is because it is abstract. Unchecking the Abstract property removes the abstract keyword from source and the font of the class name is not italicized anymore. All works as expected, however, I did get an exception, and oddly enough, its message told me to see issue 31413. Fix the exception (or prevent printing to command window/log file and ignore, because it works fine). java.lang.IllegalStateException: Warning - the node "FooBar" [org.netbeans.modul es.java.ui.nodes.elements.ClassNode] is trying to fire the property superclass w hich is not included in its property sets. This is illegal. See IZ #31413 for de tails. at org.openide.nodes.Node.firePropertyChange(Node.java:909) at org.netbeans.modules.java.ui.nodes.elements.ElementNode.superProperty Change(ElementNode.java:294) at org.netbeans.modules.java.ui.nodes.elements.ElementNode$JMIElementLis tener.fireRegisteredProperties(ElementNode.java:447) at org.netbeans.modules.java.ui.nodes.elements.ElementNode$JMIElementLis tener.change(ElementNode.java:433) at org.netbeans.mdr.util.EventNotifier$EventsDelivery.run(EventNotifier. java:276) at java.lang.Thread.run(Thread.java:595)
Element transformation still not yet available in 6.5