Bug 57005 - NPE in compiler prevents all quick fixes from working
Summary: NPE in compiler prevents all quick fixes from working
Status: CLOSED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2004-04-01 00:38 EST by Michal Plechawski CLA
Modified: 2009-08-30 02:09 EDT (History)
0 users

See Also:


Attachments
.options file (1.50 KB, text/plain)
2004-04-22 06:58 EDT, Jerome Lanneluc CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Plechawski CLA 2004-04-01 00:38:42 EST
I found some problem in M8 release, which results in very annoying behaviour -
all quickfixes stop working! It happens in any class in my project - the
quickfix bulb is being shown, but Ctrl+1 shows no quickfixes available and no
action could be taken.
It was a showstopper to me, I cannot work without quickfixes, so I switched back
to M7.


Here goes the stacktrace:

java.lang.NullPointerException
	at
org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.superInterfaces(BinaryTypeBinding.java:449)
	at
org.eclipse.jdt.internal.core.hierarchy.HierarchyResolver.resolve(HierarchyResolver.java:671)
	at
org.eclipse.jdt.internal.core.hierarchy.IndexBasedHierarchyBuilder.buildForProject(IndexBasedHierarchyBuilder.java:194)
	at
org.eclipse.jdt.internal.core.hierarchy.IndexBasedHierarchyBuilder.buildFromPotentialSubtypes(IndexBasedHierarchyBuilder.java:301)
	at
org.eclipse.jdt.internal.core.hierarchy.IndexBasedHierarchyBuilder.build(IndexBasedHierarchyBuilder.java:130)
	at
org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.compute(TypeHierarchy.java:319)
	at
org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.refresh(TypeHierarchy.java:1234)
	at
org.eclipse.jdt.internal.core.CreateTypeHierarchyOperation.executeOperation(CreateTypeHierarchyOperation.java:90)
	at
org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:700)
	at
org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:739)
	at org.eclipse.jdt.internal.core.BinaryType.newTypeHierarchy(BinaryType.java:598)
	at org.eclipse.jdt.internal.core.BinaryType.newTypeHierarchy(BinaryType.java:568)
	at
org.eclipse.jdt.internal.debug.ui.launcher.AppletLaunchConfigurationUtils.collectAppletTypesInProject(AppletLaunchConfigurationUtils.java:114)
	at
org.eclipse.jdt.internal.debug.ui.launcher.AppletLaunchConfigurationUtils.isSubclassOfApplet(AppletLaunchConfigurationUtils.java:166)
	at
org.eclipse.jdt.internal.debug.ui.launcher.AppletLaunchConfigurationUtils.collectTypes(AppletLaunchConfigurationUtils.java:148)
	at
org.eclipse.jdt.internal.debug.ui.launcher.ResourceExtender.isApplet(ResourceExtender.java:61)
	at
org.eclipse.jdt.internal.debug.ui.launcher.ResourceExtender.test(ResourceExtender.java:44)
	at org.eclipse.core.internal.expressions.Property.test(Property.java:47)
	at
org.eclipse.core.internal.expressions.TestExpression.evaluate(TestExpression.java:57)
	at
org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:50)
	at
org.eclipse.core.internal.expressions.IterateExpression.evaluate(IterateExpression.java:99)
	at
org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:50)
	at
org.eclipse.core.internal.expressions.WithExpression.evaluate(WithExpression.java:37)
	at
org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:50)
	at
org.eclipse.core.internal.expressions.EnablementExpression.evaluate(EnablementExpression.java:28)
	at
org.eclipse.debug.internal.ui.launchConfigurations.LaunchShortcutExtension.evalContextualLaunchEnablementExpression(LaunchShortcutExtension.java:168)
	at
org.eclipse.debug.internal.ui.actions.ContextualLaunchObjectActionDelegate.isApplicable(ContextualLaunchObjectActionDelegate.java:226)
	at
org.eclipse.debug.internal.ui.actions.ContextualLaunchObjectActionDelegate.fillMenu(ContextualLaunchObjectActionDelegate.java:166)
	at
org.eclipse.debug.internal.ui.actions.ContextualLaunchObjectActionDelegate$1.menuShown(ContextualLaunchObjectActionDelegate.java:103)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:116)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:769)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:793)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:774)
	at org.eclipse.swt.widgets.Control.WM_INITMENUPOPUP(Control.java:3295)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:2967)
	at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1439)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:3146)
	at org.eclipse.swt.internal.win32.OS.TrackPopupMenu(Native Method)
	at org.eclipse.swt.widgets.Menu._setVisible(Menu.java:222)
	at org.eclipse.swt.widgets.Display.runPopups(Display.java:2604)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2249)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1562)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1536)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:257)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:139)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:90)
	at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:277)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:239)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:117)
	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:267)
	at org.eclipse.core.launcher.Main.run(Main.java:692)
	at org.eclipse.core.launcher.Main.main(Main.java:676)
Comment 1 Olivier Thomann CLA 2004-04-01 10:16:01 EST
Could you please provide a reproducable test case?
Thanks.
Comment 2 Kent Johnson CLA 2004-04-05 11:42:54 EDT
Jerome: this is started from the HierarchyResolver, can you take a look?
Comment 3 Jerome Lanneluc CLA 2004-04-06 04:43:16 EDT
Without a reproducible test case there is little chance that we can fix the 
bug. And we don't want you to be stuck with M7 :-) Can you describe how you got 
the stack trace? What did you have in your workspace?
Comment 4 Jerome Lanneluc CLA 2004-04-22 06:58:01 EDT
Created attachment 9839 [details]
.options file

Can you please save the attached .options file on your harddisk (e.g.
d:\eclipse\.options) and start eclipse as follows?

eclipse.exe -debug d:\eclipse\.options -vm d:\jdk1.4.2\jre\bin\java.exe

Then run your test case. When the hierarchy is computed, some tracing should be
printed to the DOS console. Please copy/paste this tracing into a text file and
attach it to this bug report.
Comment 5 Philipe Mulet CLA 2004-04-28 12:19:57 EDT
Please reopen once steps to reproduce are available.
Comment 6 Jerome Lanneluc CLA 2004-06-30 12:54:08 EDT
Closing
Comment 7 Denis Roy CLA 2009-08-30 02:09:00 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.