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 55262 - CCE from MDRParser
Summary: CCE from MDRParser
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-20 12:56 UTC by em12345
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description em12345 2005-02-20 12:56:50 UTC
Hi,

the following source in the editor produces the below exception.
This also occurs in version 4.1 EA2

public class Test<E extends Test> {
    public static class Inner {}

    public E.Inner get() {
        return null;
    }
}

This makes the editor currently unusable,
since this exception pops up whenever one edits something in the file.

I searched the issue database and couldn't find 
exactly this error. But I found several others,
where people also had problems with the 
Request Processor popping up. It would help a lot
if one could force Netbeans to only popup the
RequestProcessor once for an error and then being quiet.

Thanks
JL

java.lang.ClassCastException: org.netbeans.jmi.javamodel.UnresolvedClass$Impl
	at org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.resolveType(SemiPersistentElement.java:680)
	at org.netbeans.modules.javacore.jmiimpl.javamodel.CallableFeatureImpl.matchPersistent(CallableFeatureImpl.java:69)
	at org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.updatePersistent(SemiPersistentElement.java:355)
	at org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.matchMember(SemiPersistentElement.java:634)
	at org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.processMembers(SemiPersistentElement.java:530)
	at org.netbeans.modules.javacore.jmiimpl.javamodel.JavaClassImpl.matchPersistent(JavaClassImpl.java:573)
	at org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.updatePersistent(SemiPersistentElement.java:355)
	at org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.matchMember(SemiPersistentElement.java:634)
	at org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.processMembers(SemiPersistentElement.java:530)
	at org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.matchPersistent(ResourceImpl.java:207)
	at org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.updatePersistent(SemiPersistentElement.java:355)
	at org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.updateMetadata(ResourceImpl.java:707)
	at org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.directUpdate(ResourceImpl.java:700)
	at org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.checkUpToDate(ResourceImpl.java:592)
	at org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.updateFromDataObject(ResourceImpl.java:404)
	at org.netbeans.modules.javacore.ExclusiveMutex.parseIfNeeded(ExclusiveMutex.java:273)
	at org.netbeans.modules.javacore.ExclusiveMutex.enter(ExclusiveMutex.java:163)
	at org.netbeans.mdr.NBMDRepositoryImpl.beginTrans(NBMDRepositoryImpl.java:227)
	at org.netbeans.modules.java.JavaEditor$2.run(JavaEditor.java:243)
	at org.openide.util.Task.run(Task.java:189)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:721)
Comment 1 Martin Roskanin 2005-02-21 08:46:25 UTC
reassigning to java module for evaluation
Comment 2 Martin Matula 2005-02-21 09:13:44 UTC
Tomas, please look at it.
Comment 3 Tomas Hurka 2005-02-23 17:26:25 UTC
Fixed in trunk.
Checking in javacore/parser/MDRParser.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/parser/MDRParser.java,v  <--  
MDRParser.java
new revision: 1.70; previous revision: 1.69
done
Processing log script arguments...
More commits to come...
Checking in javacore/jmiimpl/javamodel/MetadataElement.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/
MetadataElement.java,v  <--  MetadataElement.java
new revision: 1.46; previous revision: 1.45
done
Checking in javacore/jmiimpl/javamodel/SemiPersistentElement.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/
SemiPersistentElement.java,v  <--  SemiPersistentElement.java
new revision: 1.64; previous revision: 1.63
done
Comment 4 Quality Engineering 2007-09-20 12:23:46 UTC
Reorganization of java component