Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 307436

Summary: IllegalArgumentException showing javadoc text hover
Product: [Eclipse Project] JDT Reporter: Andrew Niefer <aniefer>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, remy.suen
Version: 3.6   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Andrew Niefer CLA 2010-03-29 15:08:08 EDT
I20100323-0800

I get the follow exception in my log when trying to display a javadoc text hover.  This seems to only happen for javadoc for things that are not in my workspace.

Open a class file from a jar in the plugin dependencies of some bundle in your workspace and try getting the javadoc hover for one of its methods.

java.lang.IllegalArgumentException: Entry must be of kind CPE_LIBRARY or CPE_VARIABLE
at java.lang.Throwable.<init>(Throwable.java:67)
at org.eclipse.jdt.internal.corext.javadoc.JavaDocLocations.getLibraryJavadocLocation(JavaDocLocations.java:272)
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 Remy Suen CLA 2010-03-29 16:23:05 EDT
Looks like bug 307096.
Comment 2 Dani Megert CLA 2010-03-30 02:11:42 EDT

*** This bug has been marked as a duplicate of bug 307096 ***