| Summary: | Exception when hovering over TODO | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Benjamin Muskalla <b.muskalla> |
| Component: | Core | Assignee: | Jay Arthanareeswaran <jarthana> |
| Status: | RESOLVED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | amj87.iitr, daniel_megert, deepakazad, Olivier_Thomann |
| Version: | 3.6 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
>TODO should not show javadoc hover This is already covered by bug 56473. And of course it should not log exceptions. Using this bug to fix the exception. Important is to use Java 6 from Oracle/Sun. Jay, please also look at the other "[Unknown javadoc format for ...]" bug reports. I think if there is a legitimate javadoc hovering and the javadoc could not be found or the format is unknown, it makes sense to log it so we can potentially fix a bug. (In reply to comment #3) > I think if there is a legitimate javadoc hovering and the javadoc could not be > found or the format is unknown, it makes sense to log it so we can potentially > fix a bug. Yes, of course. With >And of course it should not log exceptions. I meant that we have to fix the bug so that nothing gets logged ;-) There doesn't seem to be anything wrong with the code. The exception is thrown because the Javadoc doesn't have a valid format - JavadocConstants.START_OF_CLASS_DATA can not be found in TODO.html. Fixing bug 56473 should take care of this one too. It so happens that there is a class by name TODO with incorrectly generated Javadoc - The generated HTML misses the following mandatory tag <!-- ======== START OF CLASS DATA ======== --> So, even though we are not supposed to be looking up type TODO, which is what bug 56473 is about, the exception thrown is expected. Marking as a duplicate. *** This bug has been marked as a duplicate of bug 56473 *** |
class A { public static void main(String[] args) { // TODO } } Hover over TODO -- Error Details -- Date: Wed Jul 14 13:56:03 CEST 2010 Message: Internal Error Severity: Error Product: Eclipse SDK 3.6.0.v201006080911 (org.eclipse.sdk.ide) Plugin: org.eclipse.jdt.ui Session Data: eclipse.buildId=I20100608-0911 java.version=1.6.0_20 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US Framework arguments: -showLocation -showLocation -showLocation Command-line arguments: -os linux -ws gtk -arch x86 -showLocation -showLocation -data /projects/egit -showLocation Exception Stack Trace: Java Model Exception: Java Model Status [Unknown javadoc format for TODO {key=Lcom/sun/xml/internal/bind/v2/TODO;} [in TODO.class [in com.sun.xml.internal.bind.v2 [in /usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/rt.jar]]]] at org.eclipse.jdt.internal.core.JavadocContents.getTypeDoc(JavadocContents.java:78) at org.eclipse.jdt.internal.core.BinaryType.getAttachedJavadoc(BinaryType.java:997) at org.eclipse.jdt.internal.ui.text.javadoc.JavadocContentAccess2.getHTMLContent(JavadocContentAccess2.java:470) 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:555) at org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover.getHoverInfo2(JavadocHover.java:547) 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)