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 85663 - ISE invoking Override Methods
Summary: ISE invoking Override Methods
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-25 00:55 UTC by _ tboudreau
Modified: 2007-09-26 09:14 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 _ tboudreau 2006-09-25 00:55:04 UTC
Editing the unit test class DefaultWizardDisplayerTest (see
http://wizard.dev.java.net for sources), I add the following inner class:
    private class D extends DeferredWizardResult {
       ^
        public void start(Map settings,
DeferredWizardResult.ResultProgressHandle progress) {
        }
    }


I place the caret where you see the ^ above and press Ctrl-I.  The following
exception is thrown.  P2 since the functionality is not working and I've seen
this exception a number of times when invoking Ctrl-I against inner/nested classes.

java.lang.IllegalStateException: Cannot initialize 0th child of node
org.openide.nodes.AbstractNode@12fe2e8[Name=, displayName=]; it already belongs
to node org.openide.nodes.AbstractNode@7280e1[Name=, displayName=]
	at org.openide.nodes.Node.assignTo(Node.java:304)
	at org.openide.nodes.Children.justComputeNodes(Children.java:709)
	at org.openide.nodes.ChildrenArray.nodes(ChildrenArray.java:69)
	at org.openide.nodes.Children.setEntries(Children.java:767)
	at org.openide.nodes.Children$Keys$2.run(Children.java:2052)
	at org.openide.util.Mutex.postRequest(Mutex.java:1141)
	at org.openide.util.Mutex.postWriteRequest(Mutex.java:487)
	at org.openide.nodes.Children$Keys.applyKeys(Children.java:2061)
	at org.openide.nodes.Children$Keys.setKeys(Children.java:2006)
	at
org.netbeans.modules.java.tools.OverridePanel2$Ch.update(OverridePanel2.java:397)
	at
org.netbeans.modules.java.tools.OverridePanel2$Ch.propertyChange(OverridePanel2.java:372)
	at
java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
	at
java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276)
	at
org.netbeans.modules.java.tools.JMIInheritanceSupport.taskFinished(JMIInheritanceSupport.java:323)
	at org.openide.util.Task.notifyFinished(Task.java:205)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:547)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:963)
Comment 1 Petr Hrebejk 2006-12-01 13:00:55 UTC
Hey Tim did you really mean to file this bug against 6.0? Seeing beans and JMI
in it. 
Comment 2 Max Sauer 2007-08-20 09:36:35 UTC
Tim, please provide info requested by Hrebejk, thanks.
Comment 3 _ tboudreau 2007-08-20 10:05:24 UTC
Probably not, since there weren't 6.0 builds yet when I filed it last September.
Comment 4 Jiri Prox 2007-09-12 11:02:36 UTC
The override method dialog was replace with Insert Code feature in 6.0
Comment 5 Quality Engineering 2007-09-20 11:00:26 UTC
Reorganization of java component