Bug 250022 - Java Model Exception: Java Model Status when getting code assist in debug detail formatter dialog
Summary: Java Model Exception: Java Model Status when getting code assist in debug det...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.5 M3   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-07 16:30 EDT by Curtis Windatt CLA
Modified: 2008-10-28 06:23 EDT (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 Curtis Windatt CLA 2008-10-07 16:30:14 EDT
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)
Comment 1 Olivier Thomann CLA 2008-10-07 16:35:15 EDT
What is the javadoc attachment for the core.jar library ?
Comment 2 Curtis Windatt CLA 2008-10-07 16:46:58 EDT
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/
Comment 3 Olivier Thomann CLA 2008-10-15 14:36:52 EDT
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.
Comment 4 Olivier Thomann CLA 2008-10-15 15:00:49 EDT
Released for 3.5M3.
Added regression test org.eclipse.jdt.core.tests.model.AttachedJavadocTests#test024
Comment 5 Frederic Fusier CLA 2008-10-28 06:23:42 EDT
Verified for 3.5M3 using build I20081026-2000.