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 31877 - CCE in org.openide.src.nodes.ClassChildren$ElementListener
Summary: CCE in org.openide.src.nodes.ClassChildren$ElementListener
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-11 11:28 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 2003-03-11 11:28:14 UTC
Using a build done in the last week or so...

I had just opened the unit test in core/test/unit 
org.netbeans.beaninfo.editors.FindEditorTest.  Then I 
switched to Mozilla.  A few seconds later, the
exception
dialog popped up with:

java.lang.ClassCastException
        at
org.openide.src.nodes.ClassChildren$ElementListener.run(ClassChildren.java:349)
[catch] at
org.openide.util.Utilities$ActiveQueue.run(Utilities.java:2439)
        at java.lang.Thread.run(Thread.java:536)

If it's at all helpful, I did not have the
org.netbeans.junit 
package mounted, so there were some error
annotations onscreen.
Comment 1 _ tboudreau 2003-03-11 11:46:12 UTC
Possibly useful additional info:  I had some logging of property 
changes running in PropertySheetTab.  So looking at it in context,
it appears that something had just fired a property change on a 
property "body" 

Cache contents:
parameters,javadocComment,exceptions,modifiers,name,Property not in
cache: javadoc
Cache contents:
parameters,javadocComment,exceptions,modifiers,name,Property not in
cache: javadoc
Cache contents:
parameters,javadocComment,exceptions,modifiers,name,***********
Exception occurred ************ at Tue Mar 11 12:14:25 CET 2003
java.lang.ClassCastException
        at
org.openide.src.nodes.ClassChildren$ElementListener.run(ClassChildren.java:349)
[catch] at org.openide.util.Utilities$ActiveQueue.run(Utilities.java:2439)
        at java.lang.Thread.run(Thread.java:536)
Property not in cache: body
Comment 2 Svata Dedic 2003-03-12 09:12:52 UTC
The fix is quite easy (and the exception is ugly) -- I will fix it for 3.5, 
too. 
 
/cvs/java/srcmodel/src/org/openide/src/nodes/ClassChildren.java,v  
<--  ClassChildren.java 
new revision: 1.6; previous revision: 1.5 
 
Fixed ClassChildren, 1.5.2.1 in release35 branch (was fixed in 
accessibility merge commit). 
 
Comment 3 Jan Becicka 2003-03-19 13:27:24 UTC
VERIFIED