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 82166 - Element has abstract property after interface to class changing
Summary: Element has abstract property after interface to class changing
Status: NEW
Alias: None
Product: uml
Classification: Unclassified
Component: Synchronization (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@uml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-08 14:28 UTC by Alexandr Scherbatiy
Modified: 2009-05-25 21:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
java.lang.IllegalStateException: (1.63 KB, text/plain)
2006-08-08 14:32 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2006-08-08 14:28:08 UTC
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
Comment 1 Alexandr Scherbatiy 2006-08-08 14:32:53 UTC
Created attachment 32650 [details]
java.lang.IllegalStateException:
Comment 2 Craig Conover 2006-08-10 05:12:03 UTC
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)
Comment 3 Joanne Lau 2008-06-16 19:30:11 UTC
Element transformation still not yet available in 6.5