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 50716

Summary: IOE thrown
Product: java Reporter: Jesse Glick <jglick>
Component: UnsupportedAssignee: Daniel Prusa <dprusa>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 4.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: Stack traces

Description Jesse Glick 2004-10-21 18:49:01 UTC
041021 custom, JDK 1.5.0. Noticed an exception
while I was making minor edits in
AntProjectHelper.java - just surrounding a block
of code with a try-catch.
Comment 1 Jesse Glick 2004-10-21 18:49:42 UTC
Created attachment 18436 [details]
Stack traces
Comment 2 Martin Matula 2004-10-21 20:25:39 UTC
I fixed the IOE caused by a bug in javacore.

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.52; previous revision: 1.51
done

However, while investigating the cause I found out that
ClassDependencyImpl does not do anything in a transaction, nor it
checks validity of accessed elements, which could be a big source of
IOEs. Dane, please fix it.
Comment 3 Daniel Prusa 2004-10-22 16:14:53 UTC
/cvs/java/src/org/netbeans/modules/java/codesync/ClassDependencyImpl.java,v
 
new revision: 1.47; previous revision: 1.46

/cvs/java/src/org/netbeans/modules/java/tools/JMIInheritanceSupport.java,v
 
new revision: 1.10; previous revision: 1.9