Bug 70892

Summary: [1.5][Javadoc] Compiler should parse reference for inline tag @value
Product: [Eclipse Project] JDT Reporter: Frederic Fusier <frederic_fusier>
Component: CoreAssignee: Frederic Fusier <frederic_fusier>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: 3.1 M2   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Frederic Fusier CLA 2004-07-27 07:29:57 EDT
@value syntax has been changed in 1.5, see sun javadoc spec:
http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/javadoc.html#@value

User can specifies a reference after this tag. So, compiler should be able to
parse and bind this reference as for @see or @link tags...
Comment 1 Frederic Fusier CLA 2004-07-27 07:33:41 EDT
On following @value tag:
/**
 * {@value java.util.TimeZone#LONG}
 */
JavadocParser currently ignores text after tag and DocCommentParser builds only
a TextElement for the reference instead of a MemberRef...
Comment 2 Frederic Fusier CLA 2004-09-06 11:23:22 EDT
Fixed.

Now other compiler will warn all syntaxes other than {@value} or {@value <member
ref>} with member ref pointing on a static field.

[jdt-core-internal]
I will attach patch file make on v_505a have detail of modifications done to
implement this change (note that some other improvement have been done in
parallel...)
As we have now a specific behavior for 1.5 while parsing Javadoc comments, 2 new
test classes have been created: JavadocTest_14 and JavadocTest_15
Comment 3 David Audel CLA 2004-09-23 09:32:54 EDT
Verified in I200409240100.