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

Summary: InvalidObjectException thrown during reparse
Product: java Reporter: Jan Becicka <jbecicka>
Component: UnsupportedAssignee: Jan Becicka <jbecicka>
Status: CLOSED FIXED    
Severity: blocker    
Priority: P2    
Version: 4.x   
Hardware: PC   
OS: Windows ME/2000   
Issue Type: DEFECT Exception Reporter:
Attachments: InvalidObjectException
Suggested fix. Dane, Martine, can you review it? Thanks

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