Community
Participate
Working Groups
1) Debug a simple java program with a String variable 2) Open the variables view, right click on the string, go to New Detail Formatter... 3) In the text box, hit ctrl-space to open the code assist 4) Select a private variable such as count or hash 5) Exceptions added to the log Tried a couple of different JREs, none had source attachments. eclipse.buildId=I20080923-0800 java.version=1.5.0_09 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 -data C:\Workspace Error Tue Oct 07 15:09:56 CDT 2008 Internal Error Java Model Exception: Java Model Status [Unknown javadoc format for nullArray [in String [in String.class [in java.lang [in C:\JavaVM\IBM 1.4.2 with J9\jre\lib\core.jar]]]]] at org.eclipse.jdt.internal.core.BinaryField.getAttachedJavadoc(BinaryField.java:122) at org.eclipse.jdt.internal.ui.text.javadoc.JavadocContentAccess2.getHTMLContent(JavadocContentAccess2.java:462) at org.eclipse.jdt.internal.ui.text.javadoc.JavadocContentAccess2.getHTMLContent(JavadocContentAccess2.java:442) 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:59) at org.eclipse.jdt.internal.ui.text.java.AbstractJavaCompletionProposal.getAdditionalProposalInfo(AbstractJavaCompletionProposal.java:513) at org.eclipse.jface.text.contentassist.AdditionalInfoController$3.run(AdditionalInfoController.java:106) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
What is the javadoc attachment for the core.jar library ?
Sun Java 6 rt.jar http://java.sun.com/javase/6/docs/api/ IBM Java 5.0 core.jar http://java.sun.com/j2se/1.5.0/docs/api/
The problem in this case is not that the format is wrong. It is that private fields don't have a javadoc entry at all. I would say that I should simply return null in this case.
Released for 3.5M3. Added regression test org.eclipse.jdt.core.tests.model.AttachedJavadocTests#test024
Verified for 3.5M3 using build I20081026-2000.