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 43599 - Exception is thrown during move class
Summary: Exception is thrown during move class
Status: CLOSED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 4.x
Hardware: PC Linux
: P1 blocker (vote)
Assignee: issues@java
URL:
Keywords:
: 43519 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-05-20 09:29 UTC by Marek Grummich
Modified: 2007-04-03 18:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Exception (2.43 KB, text/plain)
2004-05-20 09:29 UTC, Marek Grummich
Details
Exception_II (1.86 KB, text/plain)
2004-05-20 09:43 UTC, Marek Grummich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Grummich 2004-05-20 09:29:09 UTC
build 040519
I moved a class from one package to another. The
class was moved right, but an attached exception
was thrown at the end of operation.
Comment 1 Marek Grummich 2004-05-20 09:29:37 UTC
Created attachment 15022 [details]
Exception
Comment 2 Marek Grummich 2004-05-20 09:42:46 UTC
I had to clear userdir after the described issue. The restart IDE
didn't  help. Everytime I got an attached exceptiom.
Comment 3 Marek Grummich 2004-05-20 09:43:39 UTC
Created attachment 15024 [details]
Exception_II
Comment 4 Jan Becicka 2004-05-20 10:18:51 UTC
Marku, when you file a bug please be more specific.

What project did you use?
What class did you move?
What was the target folder?
Did you use D'n'D?

Comment 5 Marek Grummich 2004-05-20 10:50:07 UTC
What project did you use?
New Project->Desktop->J2SE Application
What class did you move?
<Src root>
|
abc
 |-A.java (before a move)
 |-def  
    |- 'A.java' (after a move)
What was the target folder?
above
Did you use D'n'D?
No! (I'll try it ;-)
Comment 6 Martin Matula 2004-05-20 11:56:06 UTC
*** Issue 43519 has been marked as a duplicate of this issue. ***
Comment 7 Marek Grummich 2004-05-31 08:56:55 UTC
I am looking at the build 040528 (merge candidate 2) and this issue
has not been fixed yet. The test case is pretty simple and this action
is one of the basic refactoring functionality. I would considered this
issue like P1.

BTW, when I invoke Undo action I get the following exception
Annotation: Exception occurred in Request Processor
javax.jmi.reflect.InvalidObjectException: Object with MOFID
5F18017C-B2D6-11D8-8405-0773A2FCAA77:0000000000000153 no longer exists.
	at
org.netbeans.mdr.handlers.BaseObjectHandler._getDelegate(BaseObjectHandler.java:322)
	at
org.netbeans.mdr.handlers.BaseObjectHandler.refImmediatePackage(BaseObjectHandler.java:282)
	at
org.netbeans.modules.javacore.JMManager.getFileObject(JMManager.java:286)
	at
org.netbeans.modules.javacore.JMManager.getDataObject(JMManager.java:302)
	at
org.netbeans.modules.java.JavaNode$PropL.resourceParsed(JavaNode.java:202)
	at
org.netbeans.modules.java.JavaEditor$WParsingListener.resourceParsed(JavaEditor.java:2667)
	at org.netbeans.modules.javacore.JMManager$2.run(JMManager.java:819)
	at org.openide.util.Task.run(Task.java:136)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:686)
Comment 8 Jan Becicka 2004-05-31 12:29:47 UTC
Fixed in various places. But undo still does not work -> but it is
separate issue 42515.

Checking in javacore/src/org/netbeans/modules/javacore/JMManager.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/Attic/JMManager.java,v
 <--  JMManager.java
new revision: 1.1.2.26; previous revision: 1.1.2.25
done
Processing log script arguments...
More commits to come...
Checking in
javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/ResourceClassImpl.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/Attic/ResourceClassImpl.java,v
 <--  ResourceClassImpl.java
new revision: 1.1.2.10.2.3; previous revision: 1.1.2.10.2.2
done
Processing log script arguments...
More commits to come...
Checking in src/org/netbeans/modules/java/JavaNode.java;
/cvs/java/src/org/netbeans/modules/java/JavaNode.java,v  <-- 
JavaNode.java
new revision: 1.99.6.6; previous revision: 1.99.6.5
done
Checking in src/org/netbeans/modules/java/OverrideAnnotationSupport.java;
/cvs/java/src/org/netbeans/modules/java/OverrideAnnotationSupport.java,v
 <--  OverrideAnnotationSupport.java
new revision: 1.3.6.9; previous revision: 1.3.6.8
done
Processing log script arguments...
More commits to come...
Checking in
src/org/netbeans/modules/java/ui/nodes/elements/ElementNode.java;
/cvs/java/src/org/netbeans/modules/java/ui/nodes/elements/Attic/ElementNode.java,v
 <--  ElementNode.java
new revision: 1.1.2.6; previous revision: 1.1.2.5
done
Comment 9 Marek Grummich 2004-06-15 10:53:32 UTC
Verified in build 20040614