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 44316 - Deprecated members no longer display as strikethrough in code completion popup
Summary: Deprecated members no longer display as strikethrough in code completion popup
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords: REGRESSION, UI
Depends on:
Blocks:
 
Reported: 2004-06-03 22:59 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 2004-06-03 22:59:39 UTC
dev-040603. Unlike the trunk prior to the
refactoring merge, deprecated methods in a class
are not displayed with the strikethrough attribute
in the code completion popup. This makes it more
difficult to separate legitimate from deprecated
members.
Comment 1 Tomas Hurka 2004-06-22 08:41:26 UTC
Moved to new subcomponent java/javacore.
Comment 2 _ tball 2004-07-13 22:29:47 UTC
I recommend that the scanner add a DEPRECATED token and return it when
a doc-comment has a "@deprecated" string in it.  Since doc-comments
preceed any modifiers to a class, method, or field, the DEPRECATED
token can be treated as just another modifier by client code.  This
makes it easy for the javacore code that builds the code completion
database to detect which entries are deprecated, without additional
source processing.

I also volunteered to implement this idea, if Tomas approves.
Comment 3 Martin Matula 2004-07-18 22:24:16 UTC
Reassigning to Tom since he is working in the fix.
Comment 4 _ tball 2004-08-06 18:57:31 UTC
I think the problem is in javacore instead of gjast, but I'll verify
that gjast is forwarding deprecated member information correctly
before reassigning this bug.
Comment 5 _ tball 2004-08-12 20:16:23 UTC
I have added support in MDRParser to detect deprecated classes and
members, and now deprecated variables now display properly in code
completion lists (check out java.awt.Frame.*).

However, deprecated methods still are not displayed correctly.  Martin
discussed this with Dusan, who thinks this may be a bug in the editor.
 I'm therefore transfering the bug to him for completion.
Comment 6 Dusan Balek 2004-08-13 14:47:44 UTC
I have fixed code completion to correctly display deprecated methods.
It works fine on JDK sources (check out java.awt.Frame.*).

However, it seems that Feature.isDeprecated() does not work for my 1.5
project sources. Reassigning back to javacore for further evaluation.
Comment 7 Martin Matula 2004-08-13 14:51:56 UTC
Could you please provide a zipped test project to make it easier for
us to reproduce the problem?
Comment 8 Martin Matula 2004-08-13 14:54:01 UTC
Dusane, please see my last comment (I realized you were not CC'ed).
Comment 9 Dusan Balek 2004-08-16 08:50:41 UTC
I cannot reproduce the problem in the latest development build ->
closing issue as fixed.
Comment 10 Quality Engineering 2007-09-20 09:47:06 UTC
Reorganization of java component