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 80609 - IOE when invoking CC on inner class
Summary: IOE when invoking CC on inner class
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Jan Becicka
URL:
Keywords: REGRESSION
: 79900 81120 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-07-19 14:19 UTC by Jiri Prox
Modified: 2007-09-26 09:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IOE (1.41 KB, text/plain)
2006-07-19 14:20 UTC, Jiri Prox
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2006-07-19 14:19:59 UTC
NB 5.5 200607190830
JDK 1.6.0 b90

IOE is thrown when CC in invoked to complete name of inner class.
In Dev (6.0) version it works fine, but i cannot find the issue related to it so
I filed this issue to get it fixed also in 5.5 branch. 

Steps to reproduce:
1) have a class:
public class NewClass {
    
    public NewClass() {       
    }
    
    class Inner {        
    }    
}

2) in the constructor type In and call CC
3) select NewClass.Inner  (must be explicitly selected, if CC opens with this
class already selected, it works fine. In such case use arrows in CC window to
cycle through the list)
-> jmi.reflect.InvalidObjectException: Object with MOFID
7DF0653D-1720-11DB-9A6D-7B7D7533AA77:0000000000000FDB no longer exists, class:
org.netbeans.jmi.javamodel.JavaClass$Impl
	at
org.netbeans.mdr.handlers.BaseObjectHandler._getDelegate(BaseObjectHandler.java:365)
	at
org.netbeans.mdr.handlers.InstanceHandler.getInstanceDelegate(InstanceHandler.java:54)
	at
org.netbeans.mdr.handlers.InstanceHandler._immediateComposite(InstanceHandler.java:257)
Comment 1 Jiri Prox 2006-07-19 14:20:48 UTC
Created attachment 32002 [details]
IOE
Comment 2 Jan Becicka 2006-08-07 10:15:33 UTC
Cannot reproduce.
Comment 3 Jiri Prox 2006-08-08 09:58:39 UTC
It's 100% reproducible on my machine

Product Version         = NetBeans 5.5 Dev (Build 200608080000)
Operating System        = Linux version 2.6.5-1.358 running on i386
Java; VM; Vendor; Home  = 1.6.0-rc; Java HotSpot(TM) Client VM 1.6.0-rc-b93; Sun
Microsystems Inc.; /space/jdk/jdk1.6.0.b93/jre
System Locale; Encoding = en_US (nb); UTF-8
Comment 4 Jan Becicka 2006-08-08 15:27:00 UTC
*** Issue 81120 has been marked as a duplicate of this issue. ***
Comment 5 Jan Becicka 2006-09-21 18:30:05 UTC
*** Issue 79900 has been marked as a duplicate of this issue. ***
Comment 6 Jan Becicka 2006-09-25 16:31:08 UTC
Regression caused by this fix: issue 75632.
Comment 7 Jan Becicka 2006-09-25 16:37:02 UTC
Fixed in trunk. Rollback of #75632
Checking in ASTRepairer.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/parser/ASTRepairer.java,v 
<--  ASTRepairer.java
new revision: 1.15; previous revision: 1.14
done

Fixed in release55_dev
Checking in ASTRepairer.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/parser/ASTRepairer.java,v 
<--  ASTRepairer.java
new revision: 1.5.28.3.2.2.14.1; previous revision: 1.5.28.3.2.2
done
Comment 8 Jiri Prox 2006-09-26 09:15:50 UTC
verified in release55_dev, can be merged into 5.5 branch
Comment 9 Tomas Hurka 2006-09-26 16:05:10 UTC
I reviewed the fix and I agree with rollbacking of fix for issue #75632.
Comment 10 Jan Becicka 2006-09-27 12:12:09 UTC
Fixed in 55
Comment 11 Quality Engineering 2007-09-20 12:48:38 UTC
Reorganization of java component