Community
Participate
Working Groups
JSDT 1.2.0.v201006041342-7C78FGDF9JgLWLMLM4Vsye Hovering in the attached source on line 45 over "SocketTransport." will cause the following NPE: java.lang.NullPointerException at org.eclipse.wst.jsdt.internal.ui.text.java.hover.JavadocHover.getHoverInfo(JavadocHover.java:198) at org.eclipse.wst.jsdt.internal.ui.text.java.hover.AbstractJavaEditorTextHover.getHoverInfo(AbstractJavaEditorTextHover.java:116) at org.eclipse.wst.jsdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo(BestMatchHover.java:99) at org.eclipse.wst.jsdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo(JavaEditorTextHoverProxy.java:67) at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:168) The source file is in a normal non-JavaScript project
Created attachment 171978 [details] source
I don't see an error when I hover over SocketTransport, but I do see the following when I hover over its prototype attribute... JavaScript Model Exception: JavaScript Model Status [prototype [in Object [in system.js [in C:/DevWorkspaces/runtime-New_configuration//metadata//plugins/org/eclipse/wst/jsdt/core/libraries/system/js [in C:\DevWorkspaces\runtime-New_configuration\.metadata\.plugins\org.eclipse.wst.jsdt.core\libraries\system.js]]]] does not exist] at org.eclipse.wst.jsdt.internal.core.JavaElement.newNotPresentException(JavaElement.java:519) at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:550) at org.eclipse.wst.jsdt.internal.core.JavaElement.getElementInfo(JavaElement.java:283) at org.eclipse.wst.jsdt.internal.core.JavaElement.getElementInfo(JavaElement.java:269) at org.eclipse.wst.jsdt.internal.core.JavaElement.exists(JavaElement.java:179) at org.eclipse.wst.jsdt.internal.core.SelectionRequestor.acceptField(SelectionRequestor.java:240) at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.selectFrom(SelectionEngine.java:876) at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:744) at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:318) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:312) at org.eclipse.wst.jsdt.internal.ui.text.java.hover.AbstractJavaEditorTextHover.getHoverInfo(AbstractJavaEditorTextHover.java:108) at org.eclipse.wst.jsdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo(BestMatchHover.java:99) at org.eclipse.wst.jsdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo(JavaEditorTextHoverProxy.java:67) at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:168) JavaScript Model Exception: JavaScript Model Status [prototype [in Object [in system.js [in C:/DevWorkspaces/runtime-New_configuration//metadata//plugins/org/eclipse/wst/jsdt/core/libraries/system/js [in C:\DevWorkspaces\runtime-New_configuration\.metadata\.plugins\org.eclipse.wst.jsdt.core\libraries\system.js]]]] does not exist] at org.eclipse.wst.jsdt.internal.core.JavaElement.newNotPresentException(JavaElement.java:519) at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:550) at org.eclipse.wst.jsdt.internal.core.JavaElement.getElementInfo(JavaElement.java:283) at org.eclipse.wst.jsdt.internal.core.JavaElement.getElementInfo(JavaElement.java:269) at org.eclipse.wst.jsdt.internal.core.JavaElement.exists(JavaElement.java:179) at org.eclipse.wst.jsdt.internal.core.SelectionRequestor.acceptField(SelectionRequestor.java:240) at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.selectFrom(SelectionEngine.java:876) at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:744) at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:318) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:312) at org.eclipse.wst.jsdt.internal.ui.text.java.hover.AbstractJavaEditorTextHover.getHoverInfo(AbstractJavaEditorTextHover.java:108) at org.eclipse.wst.jsdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo(BestMatchHover.java:99) at org.eclipse.wst.jsdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo(JavaEditorTextHoverProxy.java:67) at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:168)
Ian...see my comment.
This may have been fixed by some recent 3.2.1 or late 3.2 RC fixes. Ian and I both attempted to reproduce in a JavaScript and Non-JavaScript project. I got hover help on SocketTransport and no error over prototype(with patches applied).