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 44931

Summary: ClassCastException thrown during reparse
Product: editor Reporter: Jan Lahoda <jlahoda>
Component: RefactoringAssignee: issues@java <issues>
Status: CLOSED FIXED    
Severity: blocker CC: jskrivanek, tboudreau
Priority: P1    
Version: 4.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: ClassCastException
Exception

Description Jan Lahoda 2004-06-16 09:37:51 UTC
NB trunk build 200406151800, JDK1.5.0-beta3-b55.

I was doing some editing, and the attached
ClassCastException started to occur. It seems to
occur during reparse (when I leave editor
untouched for a while or when I save the file).
Comment 1 Jan Lahoda 2004-06-16 09:38:41 UTC
Created attachment 15731 [details]
ClassCastException
Comment 2 Jiri Skrivanek 2004-06-16 10:35:45 UTC
*** Issue 44917 has been marked as a duplicate of this issue. ***
Comment 3 Jiri Skrivanek 2004-06-16 10:37:09 UTC
Increasing priority because it is really annoying and IDE gets unusable.
Comment 4 Tomas Hurka 2004-06-16 11:17:04 UTC
Fixed in trunk.
Checking in src/org/netbeans/modules/javacore/jmiimpl/javamodel/
SemiPersistentElement.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/
SemiPersistentElement.java,v  <--  SemiPersistentElement.java
new revision: 1.12; previous revision: 1.11
done
Comment 5 Martin Matula 2004-06-16 21:33:49 UTC
*** Issue 44934 has been marked as a duplicate of this issue. ***
Comment 6 Marek Grummich 2004-06-17 09:38:55 UTC
Build 200406161800, j2sdk1.4.2
Sorry, I have to open this issue again, because an attached exception
was thrown, when I typed ' ... implements J ...' in the editor.
<snip>
java.lang.ClassCastException
        at
org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.getInfos(S
emiPersistentElement.java:308)
        at
org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.processMem
bers(SemiPersistentElement.java:336)
.....
</snip>
Comment 7 Marek Grummich 2004-06-17 09:39:29 UTC
Created attachment 15798 [details]
Exception
Comment 8 Martin Matula 2004-06-17 10:20:13 UTC
Fixed. The original fix was accidentally removed by one of the other
commits yesterday.
Comment 9 Jan Lahoda 2004-06-28 13:31:45 UTC
I have not seen this problem for a quite long time, so I suppose it is
really fixed. Current build is 200406271800.