Bug 18456 - ArrayStoreException during move
Summary: ArrayStoreException during move
Status: RESOLVED DUPLICATE of bug 18418
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Erich Gamma CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-31 10:59 EDT by Lynne Kues CLA
Modified: 2002-05-31 12:01 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lynne Kues CLA 2002-05-31 10:59:39 EDT
Build 20020530.
Got the following walkbacks while attempting to move *.java files.
Scenario:
- Imported from a *.jar file.  
- Selected an incorrect destination such that a bogus package was created 
(e.g., org.eclipse.ui.internal.org.eclipse.ui.internal)
- Selected the files from the bogus package and moved them to their correct 
place.
- The files were not moved.




!ENTRY org.eclipse.ui 4 0 May 31, 2002 10:18:19.618
!MESSAGE java.lang.ArrayStoreException
!STACK 0
java.lang.ArrayStoreException
	at java.lang.System.arraycopy(Native Method)
	at java.util.ArrayList.toArray(ArrayList.java(Compiled Code))
	at 
org.eclipse.jdt.internal.corext.refactoring.structure.ReferenceFinderUtil.getTyp
esReferencedIn(ReferenceFinderUtil.java:33)
	at 
org.eclipse.jdt.internal.corext.refactoring.reorg.MoveRefactoring.checkReference
sToNotPublicTypes(MoveRefactoring.java:100)
	at 
org.eclipse.jdt.internal.corext.refactoring.reorg.MoveRefactoring.checkInput
(MoveRefactoring.java:82)
	at 
org.eclipse.jdt.internal.corext.refactoring.base.Refactoring.checkPreconditions
(Refactoring.java:84)
	at org.eclipse.jdt.internal.ui.reorg.JdtMoveAction.doReorg
(JdtMoveAction.java:127)
	at org.eclipse.jdt.internal.ui.reorg.ReorgDestinationAction.run
(ReorgDestinationAction.java:105)
	at org.eclipse.jdt.internal.ui.reorg.JdtMoveAction.run
(JdtMoveAction.java:63)
	at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun
(SelectionDispatchAction.java:178)
	at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run
(SelectionDispatchAction.java:156)
	at org.eclipse.jdt.ui.actions.MoveAction.run(MoveAction.java:62)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:749)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection
(ActionContributionItem.java:407)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent
(ActionContributionItem.java(Compiled Code))
	at 
org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent
(ActionContributionItem.java(Compiled Code))
	at 
org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent
(ActionContributionItem.java(Compiled Code))
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java
(Compiled Code))
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Compiled Code))
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java
(Compiled Code))
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java
(Compiled Code))
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java
(Compiled Code))
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:1128)
	at org.eclipse.core.internal.boot.InternalBootLoader.run
(InternalBootLoader.java:739)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:462)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:200)
	at org.eclipse.core.launcher.Main.run(Main.java:643)
	at org.eclipse.core.launcher.Main.main(Main.java:476)
!ENTRY org.eclipse.ui 4 4 May 31, 2002 10:18:35.742
!MESSAGE Unhandled exception caught in event loop.
!ENTRY org.eclipse.ui 4 0 May 31, 2002 10:18:35.742
!MESSAGE java.lang.ArrayStoreException
!STACK 0
java.lang.ArrayStoreException
	at java.lang.System.arraycopy(Native Method)
	at java.util.ArrayList.toArray(ArrayList.java(Compiled Code))
	at 
org.eclipse.jdt.internal.corext.refactoring.structure.ReferenceFinderUtil.getTyp
esReferencedIn(ReferenceFinderUtil.java:33)
	at 
org.eclipse.jdt.internal.corext.refactoring.reorg.MoveRefactoring.checkReference
sToNotPublicTypes(MoveRefactoring.java:100)
	at 
org.eclipse.jdt.internal.corext.refactoring.reorg.MoveRefactoring.checkInput
(MoveRefactoring.java:82)
	at 
org.eclipse.jdt.internal.corext.refactoring.base.Refactoring.checkPreconditions
(Refactoring.java:84)
	at org.eclipse.jdt.internal.ui.reorg.JdtMoveAction.doReorg
(JdtMoveAction.java:127)
	at org.eclipse.jdt.internal.ui.reorg.ReorgDestinationAction.run
(ReorgDestinationAction.java:105)
	at org.eclipse.jdt.internal.ui.reorg.JdtMoveAction.run
(JdtMoveAction.java:63)
	at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun
(SelectionDispatchAction.java:178)
	at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run
(SelectionDispatchAction.java:156)
	at org.eclipse.jdt.ui.actions.MoveAction.run(MoveAction.java:62)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:749)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection
(ActionContributionItem.java:407)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent
(ActionContributionItem.java(Compiled Code))
	at 
org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent
(ActionContributionItem.java(Compiled Code))
	at 
org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent
(ActionContributionItem.java(Compiled Code))
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java
(Compiled Code))
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Compiled Code))
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java
(Compiled Code))
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java
(Compiled Code))
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java
(Compiled Code))
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:1128)
	at org.eclipse.core.internal.boot.InternalBootLoader.run
(InternalBootLoader.java:739)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:462)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:200)
	at org.eclipse.core.launcher.Main.run(Main.java:643)
	at org.eclipse.core.launcher.Main.main(Main.java:476)
Comment 1 Lynne Kues CLA 2002-05-31 11:21:06 EDT
Acutally, move in general appears to be broken.  I thought it was related to 
import, but I just got the problem attempting to move a class from one package 
to another (org.eclipse.ui to org.eclipse.ui.part).
Comment 2 Adam Kiezun CLA 2002-05-31 12:01:46 EDT

*** This bug has been marked as a duplicate of 18418 ***