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 - ClassCastException thrown during reparse
Summary: ClassCastException thrown during reparse
Status: CLOSED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 4.x
Hardware: All All
: P1 blocker (vote)
Assignee: issues@java
URL:
Keywords:
: 44917 44934 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-06-16 09:37 UTC by Jan Lahoda
Modified: 2007-04-03 18:02 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ClassCastException (6.65 KB, text/plain)
2004-06-16 09:38 UTC, Jan Lahoda
Details
Exception (4.25 KB, text/plain)
2004-06-17 09:39 UTC, Marek Grummich
Details

Note You need to log in before you can comment on or make changes to this bug.
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.