Bug 70892 - [1.5][Javadoc] Compiler should parse reference for inline tag @value
Summary: [1.5][Javadoc] Compiler should parse reference for inline tag @value
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M2   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-27 07:29 EDT by Frederic Fusier CLA
Modified: 2004-09-23 09:32 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.