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 46934 - InvalidObjectException thrown during reparse
Summary: InvalidObjectException thrown during reparse
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-05 13:06 UTC by Jan Becicka
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
InvalidObjectException (10.02 KB, text/plain)
2004-08-05 13:07 UTC, Jan Becicka
Details
Suggested fix. Dane, Martine, can you review it? Thanks (808 bytes, patch)
2004-08-12 14:09 UTC, Jan Becicka
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Becicka 2004-08-05 13:06:07 UTC
Steps to reproduce:
1. Create a new project "testproject"
2. Wait for scanning to do it's job.

3. Do a typo in package declaration:
package test project;

4. Do a typo in class declaration
public class M ain {

5. correct typo in class declaration:
public class M ain {

6. Exceptions are thrown - see attachment.

This issue is *not* related to Tom's recent commit
of fast scanner.
Comment 1 Jan Becicka 2004-08-05 13:07:15 UTC
Created attachment 16657 [details]
InvalidObjectException
Comment 2 Jan Becicka 2004-08-05 13:11:15 UTC
Probably caused by:
Class not found in index: test.M. Recovering...
java.lang.Exception: Stack trace
        at java.lang.Thread.dumpStack(Thread.java:1064)
        at
org.netbeans.modules.javacore.parser.MDRParser.resolveSuperTypes(MDRParser.java:1094)
        at
org.netbeans.modules.javacore.parser.MDRParser.processAST(MDRParser.java:314)
Comment 3 Jan Becicka 2004-08-12 14:09:32 UTC
Created attachment 16775 [details]
Suggested fix. Dane, Martine, can you review it? Thanks
Comment 4 Jan Becicka 2004-08-16 14:46:24 UTC
Patch reviewed by dprusa.

Checking in ElementImpl.java;
/cvs/java/src/org/netbeans/modules/java/bridge/ElementImpl.java,v  <--
 ElementImpl.java
new revision: 1.17; previous revision: 1.16
done
Comment 5 Jiri Prox 2005-07-11 16:18:42 UTC
Verified in 4.2 (200507110943)
Comment 6 Quality Engineering 2007-09-20 11:55:23 UTC
Reorganization of java component