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 49897 - ESE on cut/paste class between modules
Summary: ESE on cut/paste class between modules
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Tomas Hurka
URL:
Keywords:
: 65112 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-10-04 16:44 UTC by _ tboudreau
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ tboudreau 2004-10-04 16:44:09 UTC
I cut a class from one module project, and pasted it into 
another.  Possible way to reproduce:

Do a checkout of contrib/options from this morning (I will do a 
commit soon that will change things - use CVS the date option).

Open projects contrib/options and contrib/optionscore.

Find the class in contrib/options AggregateOptionsModel.
Cut the class and paste it into contrib/optionscore/org/
netbeans/modules/optionscore


Annotation: Exception occurred in Request Processor
java.util.EmptyStackException
	at java.util.Stack.peek(Stack.java:79)
	at java.util.Stack.pop(Stack.java:61)
	at 
org.netbeans.modules.javacore.parser.MDRParser.enterBody(MD
RParser.java:186)
	at 
org.netbeans.modules.javacore.parser.MDRParser.doAttribution(
MDRParser.java:158)
	at 
org.netbeans.modules.javacore.parser.MDRParser.isVariableAcce
ss(MDRParser.java:978)
	at 
org.netbeans.modules.javacore.jmiimpl.javamodel.MetadataElem
ent.getElementProxy(MetadataElement.java:551)
	at 
org.netbeans.modules.javacore.jmiimpl.javamodel.MetadataElem
ent.createElement(MetadataElement.java:473)
	at 
org.netbeans.modules.javacore.jmiimpl.javamodel.MetadataElem
ent.initOrCreate(MetadataElement.java:953)
	at 
org.netbeans.modules.javacore.jmiimpl.javamodel.FieldImpl.init
ASTElements(FieldImpl.java:87)
	at 
org.netbeans.modules.javacore.jmiimpl.javamodel.FieldImpl.get
TypeName(FieldImpl.java:239)
	at 
org.netbeans.jmi.javamodel.Field$Impl.getTypeName(Unknown 
Source)
	at 
org.netbeans.modules.javacore.jmiimpl.javamodel.FieldImpl.get
Children(FieldImpl.java:61)
	at 
org.netbeans.jmi.javamodel.Field$Impl.getChildren(Unknown 
Source)
	at 
org.netbeans.modules.refactoring.api.MoveClassRefactoring.che
ckUsedElements(MoveClassRefactoring.java:346)
	at 
org.netbeans.modules.refactoring.api.MoveClassRefactoring.che
ckUsedElements(MoveClassRefactoring.java:431)
	at 
org.netbeans.modules.refactoring.api.MoveClassRefactoring.che
ckUsedElements(MoveClassRefactoring.java:340)
	at 
org.netbeans.modules.refactoring.api.MoveClassRefactoring.pre
Check(MoveClassRefactoring.java:151)
	at 
org.netbeans.modules.refactoring.api.ui.ParametersPanel$7.run(
ParametersPanel.java:403)
	at org.openide.util.Task.run(Task.java:136)
	at 
org.openide.util.RequestProcessor$Task.run(RequestProcessor.ja
va:330)
[catch] at 
org.openide.util.RequestProcessor$Processor.run(RequestProces
sor.java:686)
Comment 1 Martin Matula 2004-10-04 16:47:20 UTC
Tomasi, please evaluate.
Comment 2 Jan Becicka 2005-11-02 14:39:08 UTC
*** Issue 65112 has been marked as a duplicate of this issue. ***
Comment 3 Tomas Hurka 2005-11-29 16:29:26 UTC
Fixed in trunk based on steps mentioned in issue #65112.
Checking in MDRParser.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/parser/MDRParser.java,v  <--  MDRParser.java
new revision: 1.94; previous revision: 1.93
done
Comment 4 Quality Engineering 2007-09-20 10:49:25 UTC
Reorganization of java component