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 50672 - Exceptions fixing imports in FileObject.java
Summary: Exceptions fixing imports in FileObject.java
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Martin Matula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-20 20:13 UTC by Jesse Glick
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack traces (278.46 KB, text/plain)
2004-10-20 20:13 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2004-10-20 20:13:14 UTC
041019 custom, JDK 1.5.0. No idea what the cause is.
Comment 1 Jesse Glick 2004-10-20 20:13:42 UTC
Created attachment 18414 [details]
Stack traces
Comment 2 Martin Matula 2004-10-21 09:02:35 UTC
The "Deletion stacktrace.." runtime exceptions are just informational.
They are printed to the console whenever some code accesses an invalid
object. This was added to help us to track reasons for
InvalidObjectExceptions. In case of FixAllImports tool it seems that
InvalidObjectException is properly handled (that's why it is not
logged), but the deletion stacktrace remains printed out to the
console (because the code that prints it out is not able to determine
whether the IOE will or will not be handled properly). To avoid it,
the FixAllImports implementation should check whether an object is
valid (using isValid) rather than optimistically calling methods on it
and handling InvalidObjectException. Anyway, both cases should work
fine, so this does not seem to be a bug.
Besides these stacktraces I've also found a bunch of NPEs which looks
like parser returned a weird AST. I will look at it.
Comment 3 ehucka 2005-01-11 13:30:20 UTC
old target milestone, please re-evaluate
Comment 4 Martin Matula 2005-03-17 20:12:25 UTC
Does not seem to be reproducible anymore. We have fixed the deletion stacktraces
and the source hierarchy now checks the validity of elements correctly.
Comment 5 Quality Engineering 2007-09-20 11:56:00 UTC
Reorganization of java component