Bug 398272 - PackageFragment.getAttachedJavadoc throws JavaModelException when there is no Javadoc.
Summary: PackageFragment.getAttachedJavadoc throws JavaModelException when there is no...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.3   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 4.3 M5   Edit
Assignee: Jay Arthanareeswaran CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 397447
  Show dependency tree
 
Reported: 2013-01-16 04:09 EST by Martin Mathew CLA
Modified: 2013-02-12 00:37 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mathew CLA 2013-01-16 04:09:08 EST
This is similar to bug 120559. When there is no Javadoc a null is expected to be returned, whereas an exception is thrown. Below is the stacktrace.


Version: 4.3.0
Build id: I20121009-0800

java.fullversion=JRE 1.6.0 IBM J9 2.4 Windows 7 amd64-64 jvmwa6460sr9-20101124_69295 (JIT enabled, AOT enabled)
J9VM - 20101124_069295
JIT  - r9_20101028_17488ifx2
GC   - 20101027_AA
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments:  -product org.eclipse.sdk.ide
Command-line arguments:  -product org.eclipse.sdk.ide -data C:\ManjuMathew\eclipse\eclipse-SDK-I20121009-0800-win32-x86_64\WS/../runtime-JDT -dev file:C:/ManjuMathew/eclipse/eclipse-SDK-I20121009-0800-win32-x86_64/WS/.metadata/.plugins/org.eclipse.pde.core/JDT/dev.properties -os win32 -ws win32 -arch x86_64 -consoleLog

!ENTRY org.eclipse.jdt.ui 4 10001 2013-01-16 14:29:10.193
!MESSAGE Internal Error
!STACK 1
Java Model Exception: Java Model Status [Cannot retrieve the attached javadoc for sun.awt.im [in C:\ManjuMathew\Java\JDK\ibm-java-sdk-70-win-i386\sdk\jre\lib\rt.jar]]
	at org.eclipse.jdt.internal.core.PackageFragment.getAttachedJavadoc(PackageFragment.java:488)
	at org.eclipse.jdt.internal.ui.text.javadoc.JavadocContentAccess2.getHTMLContent(JavadocContentAccess2.java:1737)
	at org.eclipse.jdt.internal.ui.text.java.ProposalInfo.extractJavadoc(ProposalInfo.java:96)
	at org.eclipse.jdt.internal.ui.text.java.ProposalInfo.computeInfo(ProposalInfo.java:76)
	at org.eclipse.jdt.internal.ui.text.java.ProposalInfo.getInfo(ProposalInfo.java:61)
	at org.eclipse.jdt.internal.ui.text.java.AbstractJavaCompletionProposal.getAdditionalProposalInfo(AbstractJavaCompletionProposal.java:555)
	at org.eclipse.jface.text.contentassist.AdditionalInfoController$3.run(AdditionalInfoController.java:106)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
!SUBENTRY 1 org.eclipse.jdt.core 4 1008 2013-01-16 14:29:10.196
!MESSAGE Cannot retrieve the attached javadoc for sun.awt.im [in C:\ManjuMathew\Java\JDK\ibm-java-sdk-70-win-i386\sdk\jre\lib\rt.jar]
Comment 1 Jay Arthanareeswaran CLA 2013-01-22 05:16:02 EST
Released the fix with test via commit:

http://git.eclipse.org/c/jdt/eclipse.jdt.core.git/commit/?id=b14a6c4d09a9bece1bab75937908ff44df19fa09
Comment 2 Jay Arthanareeswaran CLA 2013-02-12 00:37:45 EST
Manju has already verified this to be working. Marking as verified.