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 48658 - [options dialog] expanding Java node under Templates/Java Classes throws ISE
Summary: [options dialog] expanding Java node under Templates/Java Classes throws ISE
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jan Becicka
URL:
Keywords:
: 48678 49072 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-09-08 11:42 UTC by David Konecny
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exception (5.10 KB, text/plain)
2004-09-08 11:43 UTC, David Konecny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Konecny 2004-09-08 11:42:19 UTC
java.lang.IllegalStateException: 
at_org.netbeans.modules.java.ui.nodes.elements.SourceChildren.createNodes(SourceChildren.java:182)

The simplest fix is to modify JavaNode constructor
to return Children.LEAF when jdo.isTemplate().
That will prevent showing any children what is the
most appropriate in this case.
Comment 1 David Konecny 2004-09-08 11:43:04 UTC
Created attachment 17474 [details]
exception
Comment 2 Jan Becicka 2004-09-08 12:24:07 UTC
Checking in JavaNode.java;
/cvs/java/src/org/netbeans/modules/java/JavaNode.java,v  <-- 
JavaNode.java
new revision: 1.119; previous revision: 1.118
done
Comment 3 Jan Becicka 2004-09-09 16:29:23 UTC
*** Issue 48678 has been marked as a duplicate of this issue. ***
Comment 4 Jan Becicka 2004-09-15 14:43:05 UTC
*** Issue 49072 has been marked as a duplicate of this issue. ***