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 50415 - Add validity check to methods that get elements from index
Summary: Add validity check to methods that get elements from index
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Linux
: P1 blocker (vote)
Assignee: Martin Matula
URL:
Keywords:
Depends on:
Blocks: 49830 49935 50403
  Show dependency tree
 
Reported: 2004-10-14 11:26 UTC by Martin Matula
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Matula 2004-10-14 11:26:01 UTC
Methods like SemiPersistentElement.resolveType
should check validity of the result before it is
returned to prevent identifiers to resolve to
classes that are out of data and will get deleted
as soon as some operation that requires up-to-date
check is invoked on them.
This will eliminate most of the IOEs that get
reported.
Comment 1 Martin Matula 2004-10-14 13:04:01 UTC
Implemented.

Checking in src/org/netbeans/modules/javacore/ClassIndex.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/ClassIndex.java,v
 <--  ClassIndex.java
new revision: 1.20; previous revision: 1.19
done
Processing log script arguments...
More commits to come...
Checking in
src/org/netbeans/modules/javacore/jmiimpl/javamodel/MetadataElement.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/MetadataElement.java,v
 <--  MetadataElement.java
new revision: 1.31; previous revision: 1.30
done
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.47; previous revision: 1.46
done
Checking in
src/org/netbeans/modules/javacore/jmiimpl/javamodel/SubClassesCollection.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/SubClassesCollection.java,v
 <--  SubClassesCollection.java
new revision: 1.8; previous revision: 1.7
done
Processing log script arguments...
More commits to come...
Checking in src/org/netbeans/modules/javacore/parser/MDRParser.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/parser/MDRParser.java,v
 <--  MDRParser.java
new revision: 1.57; previous revision: 1.56
done
Comment 2 Quality Engineering 2007-09-20 10:46:52 UTC
Reorganization of java component