Bug 48363 NumberFormatException running the test suites
20031209 If you run the test suites (UITestSuite) you get a series of exceptions to the console: java.version=1.4.2 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US Command-line arguments: -feature org.eclipse.platform -dev bin -os win32 -ws win32 -arch x86 -nl en_US -port 4745 -testpluginname org.eclipse.ui.tests - classnames org.eclipse.ui.tests.UiTestSuite -configuration file:D:/R30/1209/eclipse/workspace/.metadata/.plugins/org.eclipse.pde.core/D__R 30_1209_eclipse_junit-workbench-workspace/platform.cfg -install file:D:/R30/1209/eclipse/ !ENTRY org.eclipse.core.runtime 4 2 Dec 09, 2003 16:08:09.984 !MESSAGE Problems occurred when invoking code from plug- in: "org.eclipse.core.runtime". !STACK 0 java.lang.NumberFormatException: For input string: "" at java.lang.NumberFormatException.forInputString (NumberFormatException.java:48) at java.lang.Integer.parseInt(Integer.java:489) at java.lang.Integer.parseInt(Integer.java:518) at org.eclipse.ui.views.markers.internal.TaskMarker.<init> (TaskMarker.java:33) at org.eclipse.ui.views.markers.internal.MarkerList.createMarker (MarkerList.java:56) at org.eclipse.ui.views.markers.internal.MarkerList.createMarkersIgnoringErrors (MarkerList.java:76) at org.eclipse.ui.views.markers.internal.MarkerView$1.resourceChanged (MarkerView.java:115) at org.eclipse.core.internal.events.NotificationManager$2.run (NotificationManager.java:255) at org.eclipse.core.internal.runtime.InternalPlatform.run (InternalPlatform.java:809) at org.eclipse.core.runtime.Platform.run(Platform.java:447) at org.eclipse.core.internal.events.NotificationManager.notify (NotificationManager.java:248) at org.eclipse.core.internal.events.NotificationManager.broadcastChanges (NotificationManager.java:142) at org.eclipse.core.internal.resources.Workspace.broadcastChanges (Workspace.java:146) at org.eclipse.core.internal.resources.Workspace.endOperation (Workspace.java:847) at org.eclipse.core.internal.resources.Marker.setAttribute (Marker.java:226) at org.eclipse.ui.tests.api.IWorkbenchPageTest.testOpenEditor5 (IWorkbenchPageTest.java:389) 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 junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests (RemoteTestRunner.java:397) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run (RemoteTestRunner.java:281) at org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunner.main (RemotePluginTestRunner.java:30) at org.eclipse.pde.internal.junit.runtime.UITestApplication$1.run (UITestApplication.java:92) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages (Synchronizer.java:102) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:2271) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1979) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1547) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1523) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench (Workbench.java:242) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:139) at org.eclipse.ui.internal.ide.IDEApplication.run (IDEApplication.java:47) at org.eclipse.pde.internal.junit.runtime.UITestApplication.run (UITestApplication.java:34) at org.eclipse.core.internal.runtime.PlatformActivator$1.run (PlatformActivator.java:242) at org.eclipse.core.runtime.adaptor.EclipseStarter.run (EclipseStarter.java:84) 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.internal.boot.OSGiBootLoader.basicRun (OSGiBootLoader.java:239) at org.eclipse.core.internal.boot.OSGiBootLoader.run (OSGiBootLoader.java:665) at org.eclipse.core.internal.boot.OSGiBootLoader.run (OSGiBootLoader.java:652) 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.basicRun(Main.java:299) at org.eclipse.core.launcher.Main.run(Main.java:767) at org.eclipse.core.launcher.Main.main(Main.java:601)
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/TaskMarker.java
private int priority;
	private int done;
	
	/**
	 * @param toCopy
	 */
	public TaskMarker(IMarker toCopy) {
		super(toCopy);
		
		priority = Integer.parseInt(Util.getProperty(IMarker.PRIORITY, toCopy));
		done = -1;
		if (toCopy.getAttribute(IMarker.USER_EDITABLE, true)) {
			done = 0;
			if (toCopy.getAttribute(IMarker.DONE, false)) {
				done = 1;
			}
		}
	}
	public int getPriority() {
		return priority;
	}
	
	public int getDone() {
		return done;
	}
}