This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 26859 - Inline @deprecated not recognized by parser
Summary: Inline @deprecated not recognized by parser
Status: VERIFIED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Linux
: P4 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-28 20:48 UTC by Jesse Glick
Modified: 2007-09-26 09:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2002-08-28 20:48:35 UTC
Look at TopManager.java in its current state (1.48):

/** Name of property for the debugger. @deprecated */
public static final String PROP_DEBUGGER = "debugger";
/** Name of property for the global keymap.
@deprecated */
public static final String PROP_GLOBAL_KEYMAP =
"globalKeymap";
/** Name of property for the Places object.
 * This is most likely to change when a new
project is opened.
 * @deprecated
 */
public static final String PROP_PLACES = "places";

If you build code completion for this, only
PROP_PLACES appears struck out (deprecated) in the
code completion. Apparently the SourceCookie impl
is confused by the @deprecated on the same line as
other text. Yet the Javadoc tool correctly marks
all three constants as deprecated in HTML.
Comment 1 Tomas Hurka 2002-09-19 11:14:33 UTC
PROP_DEBUGGER and PROP_GLOBAL_KEYMAP are not marked as deprecated by 
external javadoc (tested with JDK 1.3.1 and 1.4.1). BTW: javac does not  understands it too and did not report usage of those symbols as 
deprecated.  
Comment 2 Jesse Glick 2002-09-20 03:49:54 UTC
You're right, it is wrong; from Javadoc docs: "The tag section starts
with the first character @ that begins a line". Strangely I thought
that it had worked to run Javadoc on these constants before, I guess I
was mistaken.