Project: JDT
Bug 226132 [hovering] rich Javadoc hover logs JME for non-existing element
Reported: 2008-04-08 10:14:15 | Status: resolved fixed

I20080401-0851 Rich Javadoc hover logs JME for non-existing element. Hover over A in this .java file (not on classpath) and then move into hover to enrich: package p; class A { } Error Tue Apr 08 16:03:45 CEST 2008 Internal Error Java Model Exception: Java Model Status [resources/ChangeSignature/canModify [in org.eclipse.jdt.ui.tests.refactoring] is not on its project's build path] at org.eclipse.jdt.internal.core.JavaElement.newJavaModelException(JavaElement.java:501) at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:245) at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:514) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:251) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:237) at org.eclipse.jdt.internal.core.PackageFragmentRoot.getKind(PackageFragmentRoot.java:507) at org.eclipse.jdt.internal.corext.javadoc.JavaDocLocations.getJavadocBaseLocation(JavaDocLocations.java:296) at org.eclipse.jdt.internal.corext.javadoc.JavaDocLocations.getJavadocLocation(JavaDocLocations.java:452) at org.eclipse.jdt.ui.JavaUI.getJavadocLocation(JavaUI.java:980) at org.eclipse.jdt.internal.ui.actions.OpenExternalBrowserAction.canEnable(OpenExternalBrowserAction.java:117) at org.eclipse.jdt.internal.ui.actions.OpenExternalBrowserAction.selectionChanged(OpenExternalBrowserAction.java:58) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchSelectionChanged(SelectionDispatchAction.java:262) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged(SelectionDispatchAction.java:257) at org.eclipse.jdt.internal.ui.actions.SimpleSelectionProvider.setSelection(SimpleSelectionProvider.java:59) at org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover$1.inputChanged(JavadocHover.java:298) at org.eclipse.jface.internal.text.html.BrowserInformationControl.setInput(BrowserInformationControl.java:336) at org.eclipse.jface.text.StickyHoverManager.internalShowInformationControl(StickyHoverManager.java:463) at org.eclipse.jface.text.AbstractInformationControlManager.presentInformation(AbstractInformationControlManager.java:1087) at org.eclipse.jface.text.AbstractInformationControlManager.setInformation(AbstractInformationControlManager.java:371) at org.eclipse.jface.text.StickyHoverManager.computeInformation(StickyHoverManager.java:311) at org.eclipse.jface.text.AbstractInformationControlManager.doShowInformation(AbstractInformationControlManager.java:1071) at org.eclipse.jface.text.AbstractInformationControlManager.showInformation(AbstractInformationControlManager.java:1061) at org.eclipse.jface.text.StickyHoverManager.replaceInformationControl(StickyHoverManager.java:424) at org.eclipse.jface.text.AbstractInformationControlManager.replaceInformationControl(AbstractInformationControlManager.java:1213) at org.eclipse.jface.text.AbstractHoverInformationControlManager.replaceInformationControl(AbstractHoverInformationControlManager.java:796) at org.eclipse.jface.text.TextViewerHoverManager.replaceInformationControl(TextViewerHoverManager.java:309) at org.eclipse.jface.text.AbstractHoverInformationControlManager.startReplaceInformationControl(AbstractHoverInformationControlManager.java:836) at org.eclipse.jface.text.AbstractHoverInformationControlManager.access$2(AbstractHoverInformationControlManager.java:826) at org.eclipse.jface.text.AbstractHoverInformationControlManager$Closer.handleMouseMove(AbstractHoverInformationControlManager.java:385) at org.eclipse.jface.text.AbstractHoverInformationControlManager$Closer.handleEvent(AbstractHoverInformationControlManager.java:348) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:83) at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1160) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1001) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1026) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1011) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:769) at org.eclipse.swt.browser.IE.handleMouseEvent(IE.java:1035) at org.eclipse.swt.browser.IE$2.handleEvent(IE.java:211) at org.eclipse.swt.ole.win32.OleEventTable.sendEvent(OleEventTable.java:55) at org.eclipse.swt.ole.win32.OleEventSink.notifyListener(OleEventSink.java:145) at org.eclipse.swt.ole.win32.OleEventSink.Invoke(OleEventSink.java:120) at org.eclipse.swt.ole.win32.OleEventSink.access$1(OleEventSink.java:97) at org.eclipse.swt.ole.win32.OleEventSink$1.method6(OleEventSink.java:71) at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:119) at org.eclipse.swt.internal.win32.OS.$$YJP$$DispatchMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.DispatchMessageW(OS.java) at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2343) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3370) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2375) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2339) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2205) at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:478) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:473) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:362) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:175) 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:597) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504) at org.eclipse.equinox.launcher.Main.run(Main.java:1236) at org.eclipse.equinox.launcher.Main.main(Main.java:1212)

Files changed in fix:
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/OpenExternalBrowserAction.java