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 269987 - Code completion offers deprecated methods
Summary: Code completion offers deprecated methods
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: Dev
Hardware: PC Linux
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
: 269803 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-03-05 05:01 UTC by Jaroslav Tulach
Modified: 2017-03-10 02:55 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 Jaroslav Tulach 2017-03-05 05:01:55 UTC
Recently I managed to hide deprecated methods from Truffle Javadoc. For example [PolyglotEngine](http://graalvm.github.io/truffle/javadoc/com/oracle/truffle/api/vm/PolyglotEngine.html) shows no `builderNew()` method, just the preferred `newBuilder()`.

However when I use `PolyglotEngine` in NetBeans IDE, I still see the old deprecated methods being offered in code completion by default. They shouldn't be that much offered.

I envision showing only non-deprecated methods on Ctrl-Space and listing deprecated ones only when asking for all options Ctrl-Space + Ctrl-Space!?
Comment 1 Jaroslav Tulach 2017-03-05 05:04:08 UTC
Simplest way to try is to open 
https://github.com/graalvm/simplelanguage
Maven project in NetBeans 8.2 and type somewhere `PolyglotEngine.` what I see is that stroke out `buildNew()` is offered as first alternative.
Comment 2 Dusan Balek 2017-03-09 08:31:58 UTC
Decreasing priorities of deprecated members.

http://hg.netbeans.org/jet-main/rev/85fcbae15c62
Comment 3 Dusan Balek 2017-03-09 14:40:31 UTC
*** Bug 269803 has been marked as a duplicate of this bug. ***
Comment 4 Quality Engineering 2017-03-10 02:55:19 UTC
Integrated into 'main-silver', will be available in build *201703100002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/85fcbae15c62
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #269987: Decreasing priorities of deprecated members.