Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 307096 - [hovering] Unexpected runtime error while computing a text hover
Summary: [hovering] Unexpected runtime error while computing a text hover
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.6 M7   Edit
Assignee: Markus Keller CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 307436 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-03-25 11:56 EDT by Darin Wright CLA
Modified: 2010-03-30 07:36 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Darin Wright CLA 2010-03-25 11:56:25 EDT
I'm see exceptions like this in my .log.

eclipse.buildId=I20100323-0800
java.version=1.6.0_18
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments:  -os win32 -ws win32 -arch x86


Error
Thu Mar 25 10:46:44 CDT 2010
Unexpected runtime error while computing a text hover

java.lang.IllegalArgumentException: Entry must be of kind CPE_LIBRARY or CPE_VARIABLE
	at org.eclipse.jdt.internal.corext.javadoc.JavaDocLocations.getLibraryJavadocLocation(JavaDocLocations.java:278)
	at org.eclipse.jdt.internal.corext.javadoc.JavaDocLocations.getJavadocBaseLocation(JavaDocLocations.java:312)
	at org.eclipse.jdt.internal.corext.javadoc.JavaDocLocations.getJavadocLocation(JavaDocLocations.java:442)
	at org.eclipse.jdt.ui.JavaUI.getJavadocLocation(JavaUI.java:979)
	at org.eclipse.jdt.internal.corext.javadoc.JavaDocLocations.getBaseURL(JavaDocLocations.java:592)
	at org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover.getHoverInfo(JavadocHover.java:609)
	at org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover.internalGetHoverInfo(JavadocHover.java:545)
	at org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover.getHoverInfo2(JavadocHover.java:528)
	at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:141)
	at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:82)
	at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
Comment 1 Markus Keller CLA 2010-03-25 15:51:14 EDT
Sorry about that. It's fixed in HEAD (bug 304394 comment 7).

Happens when you try to show a hover for an element from a classpath container, and the enclosing JAR has a source attachment but no Javadoc location.
Comment 2 Dani Megert CLA 2010-03-30 02:11:42 EDT
*** Bug 307436 has been marked as a duplicate of this bug. ***