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 49935

Summary: [tests] IOE from undo after a move class
Product: editor Reporter: ehucka <ehucka>
Component: RefactoringAssignee: Martin Matula <mmatula>
Status: CLOSED FIXED    
Severity: blocker Keywords: RANDOM, T9Y
Priority: P2    
Version: 4.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 50415    
Bug Blocks: 49959    
Attachments: IOE's stacktrace
stacktrace
ide.log

Description ehucka 2004-10-05 10:44:00 UTC
Validation automated tests random fail after an
IOE thrown from undo after a move class.
Comment 1 ehucka 2004-10-05 10:44:53 UTC
Created attachment 18042 [details]
IOE's stacktrace
Comment 2 Martin Matula 2004-10-08 17:13:05 UTC
*** Issue 49732 has been marked as a duplicate of this issue. ***
Comment 3 Martin Matula 2004-10-08 18:04:58 UTC
*** Issue 48638 has been marked as a duplicate of this issue. ***
Comment 4 Martin Matula 2004-10-14 13:12:40 UTC
Fixed by implementing task specified in issue 50415.
Comment 5 ehucka 2004-10-25 09:27:54 UTC
It is still there.
Comment 6 Martin Matula 2004-10-25 09:29:44 UTC
Please provide the current stacktrace.
Comment 7 Martin Matula 2004-10-25 09:35:59 UTC
Also - is was this bug gone for a while and now it is a regression, or
does it seem it was never fixed?
Comment 8 ehucka 2004-10-25 10:19:59 UTC
I've checked some previous tests results and it seems the problem
occurance is lower but the problem is still there.
Comment 9 ehucka 2004-10-25 10:21:12 UTC
Created attachment 18479 [details]
stacktrace
Comment 10 Martin Matula 2004-10-27 16:23:41 UTC
Fixed by recent integrations to ResourceImpl and JMManager.
Comment 11 Martin Matula 2004-10-27 16:24:29 UTC
User: mmatula 
  Date: 04/10/27 06:23:47

  Modified:   
javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel
                        ResourceImpl.java
  Log:
  Another up-to-date checking bug fixed.
Comment 12 ehucka 2004-11-03 09:08:11 UTC
There is failed one test in the last test run (it cannot find some
class) but there are many IOE in ide.log.
Comment 13 ehucka 2004-11-03 09:08:46 UTC
Created attachment 18696 [details]
ide.log
Comment 14 Martin Matula 2004-11-03 12:51:01 UTC
P3->P2 since it is an IOE and it happens in tests.
Comment 15 Martin Matula 2004-11-03 13:05:10 UTC
Fixed in trunk. (this was a different problem related to updating
classes when scanning - it may have resulted in IOEs but also in other
exceptions like info is null for element, etc.)

Checking in
src/org/netbeans/modules/javacore/jmiimpl/javamodel/JavaClassImpl.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/JavaClassImpl.java,v
 <--  JavaClassImpl.java
new revision: 1.39; previous revision: 1.38
done
Processing log script arguments...
More commits to come...
Checking in src/org/netbeans/modules/javacore/scanning/JavaUpdater.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/scanning/JavaUpdater.java,v
 <--  JavaUpdater.java
new revision: 1.18; previous revision: 1.17
done
Comment 16 Tomas Hurka 2004-11-03 14:24:22 UTC
I have reviewed the fix in trunk and agree with it.
Comment 17 Tomas Hurka 2004-11-04 12:41:18 UTC
I have reviewed the proposed fix and it seems to be OK.
Comment 18 Martin Matula 2004-11-04 15:09:39 UTC
Fix merged to release40 branch.

Checking in
src/org/netbeans/modules/javacore/jmiimpl/javamodel/JavaClassImpl.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/JavaClassImpl.java,v
 <--  JavaClassImpl.java
new revision: 1.37.2.1; previous revision: 1.37
done
Processing log script arguments...
More commits to come...
Checking in src/org/netbeans/modules/javacore/scanning/JavaUpdater.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/scanning/JavaUpdater.java,v
 <--  JavaUpdater.java
new revision: 1.17.6.1; previous revision: 1.17
done
Comment 19 ehucka 2005-03-15 12:17:54 UTC
verified