Bug 85203 - VerifyError running o.e.pdu.ui from workspace
Summary: VerifyError running o.e.pdu.ui from workspace
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 3.1 M5   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 85258 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-02-14 17:46 EST by Konrad Kolosowski CLA
Modified: 2005-02-15 13:17 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Konrad Kolosowski CLA 2005-02-14 17:46:06 EST
Using I20050214 9:27, with org.eclipse.pde.core and org.eclipse.pde.ui checked 
out from CVS (from HEAD or v20050214 tags) to workspace, I run runtime 
workbench and obtain VerifyError in it.
To get the error, in the runtime workspace, choose File -> New -> Project... -
> Plug-in Project, Next.

Does not happen using last week integration build.
Happens running runtime workbench with Sun 1.4.2_07-b02, and 1.5.0_01-b08.

!ENTRY org.eclipse.ui 4 0 2005-02-14 17:21:40.642
!MESSAGE (class: org/eclipse/pde/internal/core/PDEState, method: <init> 
signature: ([Ljava/net/URL;ZLorg/eclipse/core/runtime/IProgressMonitor;)V) 
Expecting to find long on stack
!STACK 0
java.lang.VerifyError: (class: org/eclipse/pde/internal/core/PDEState, method: 
<init> signature: ([Ljava/net/URL;ZLorg/eclipse/core/runtime/IProgressMonitor;)
V) Expecting to find long on stack
	at org.eclipse.pde.internal.core.ExternalModelManager.loadModels
(ExternalModelManager.java:149)
	at org.eclipse.pde.internal.core.ExternalModelManager.getAllModels
(ExternalModelManager.java:109)
	at org.eclipse.pde.internal.core.PluginModelManager.initializeTable
(PluginModelManager.java:438)
	at org.eclipse.pde.internal.core.PluginModelManager.getEntryTable
(PluginModelManager.java:424)
	at org.eclipse.pde.internal.core.PluginModelManager.findEntry
(PluginModelManager.java:167)
	at org.eclipse.pde.internal.core.PluginModelManager.getTargetVersion
(PluginModelManager.java:52)
	at org.eclipse.pde.internal.core.PDECore.getTargetVersion
(PDECore.java:440)
	at 
org.eclipse.pde.internal.ui.wizards.plugin.NewProjectCreationPage.createFormatG
roup(NewProjectCreationPage.java:113)
	at 
org.eclipse.pde.internal.ui.wizards.plugin.NewProjectCreationPage.createControl
(NewProjectCreationPage.java:51)
	at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:179)
	at org.eclipse.jface.wizard.WizardDialog.createPageControls
(WizardDialog.java:605)
	at org.eclipse.jface.wizard.WizardDialog.setWizard
(WizardDialog.java:959)
	at org.eclipse.jface.wizard.WizardDialog.updateForPage
(WizardDialog.java:1010)
	at org.eclipse.jface.wizard.WizardDialog.access$2
(WizardDialog.java:1007)
	at org.eclipse.jface.wizard.WizardDialog$4.run(WizardDialog.java:997)
	at org.eclipse.swt.custom.BusyIndicator.showWhile
(BusyIndicator.java:69)
	at org.eclipse.jface.wizard.WizardDialog.showPage
(WizardDialog.java:995)
	at org.eclipse.jface.wizard.WizardDialog.nextPressed
(WizardDialog.java:747)
	at org.eclipse.jface.wizard.WizardDialog.buttonPressed
(WizardDialog.java:338)
	at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:543)
	at org.eclipse.swt.widgets.TypedListener.handleEvent
(TypedListener.java:89)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:842)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2878)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2516)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:718)
	at org.eclipse.jface.window.Window.open(Window.java:696)
	at org.eclipse.ui.actions.NewProjectAction.run
(NewProjectAction.java:117)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:1003)
	at 
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection
(ActionContributionItem.java:557)
	at org.eclipse.jface.action.ActionContributionItem.access$2
(ActionContributionItem.java:507)
	at org.eclipse.jface.action.ActionContributionItem$6.handleEvent
(ActionContributionItem.java:421)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:842)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2878)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2516)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1612)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1578)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench
(Workbench.java:293)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:144)
	at org.eclipse.ui.internal.ide.IDEApplication.run
(IDEApplication.java:102)
	at org.eclipse.core.internal.runtime.PlatformActivator$1.run
(PlatformActivator.java:228)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:332)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:149)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.eclipse.core.launcher.Main.invokeFramework(Main.java:268)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:260)
	at org.eclipse.core.launcher.Main.run(Main.java:887)
	at org.eclipse.core.launcher.Main.main(Main.java:871)
Comment 1 Dejan Glozic CLA 2005-02-14 17:54:25 EST
I am getting the same thing. I checked out PDE UI and PDE Core (and couple 
more projects) and I am working in a fresh new workspace. Getting identical 
error.
Comment 2 Philipe Mulet CLA 2005-02-15 06:31:23 EST
Reproduced
Comment 3 Philipe Mulet CLA 2005-02-15 07:10:22 EST
We misgenerate the bytecode sequence for:
   fId = fState.getBundles().length;

and forget to convert int value to long
Comment 4 Philipe Mulet CLA 2005-02-15 07:12:54 EST
Simpler testcase:

public class X {
	static long lfield;
	
	public static void main(String[] args) {
		lfield = args(args).length;
		
	}
	static String[] args(String[] args) {
		return args;
	}
}
Comment 5 Philipe Mulet CLA 2005-02-15 07:27:05 EST
Problem got recently introduced, arraylength support in FieldReference no longer
generated implict conversion.

Added ArrayTest#test008.
Fixed
Comment 6 Jerome Lanneluc CLA 2005-02-15 09:56:14 EST
*** Bug 85258 has been marked as a duplicate of this bug. ***
Comment 7 Jerome Lanneluc CLA 2005-02-15 13:17:34 EST
Verified in I20050215-0800