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 268895 - not showing hints
Summary: not showing hints
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 8.2
Hardware: PC Windows 10 x64
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-08 18:07 UTC by FiruzzZ
Modified: 2017-06-25 01:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (882.00 KB, text/plain)
2016-11-08 18:07 UTC, FiruzzZ
Details

Note You need to log in before you can comment on or make changes to this bug.
Description FiruzzZ 2016-11-08 18:07:20 UTC
I have this snippet of code, where I intentionally typed a non declared variable "pago" and I expect the hints from the IDE to create it Local/Field etc.. but I have none, just an error red bubble instead with the tooltip "Cannot find simbol....  Alt-Enter to shows hints"
ClienteActividadPagoDAO dao = new ClienteActividadPagoDAO();
        for (Cliente cliente : ll) {
            
            dao.persist(pago);
        }

Product Version = NetBeans IDE 8.2 (Build 201609300101)
Operating System = Windows 10 version 10.0 running on amd64
Java; VM; Vendor = 1.8.0_112
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.112-b15

Reproducibility: Happens every time
Comment 1 FiruzzZ 2016-11-08 18:07:48 UTC
Created attachment 162829 [details]
IDE log
Comment 2 FiruzzZ 2016-11-08 18:14:35 UTC
Later the IDE suggests me to "Assign Return Value to New Variable" but the signature of the method is:
public void persist(ClienteActividadPago o) which inherits from an Abstract DAO Class -> public void persist(T entity)
Comment 3 FiruzzZ 2016-11-08 18:17:17 UTC
(In reply to FiruzzZ from comment #2)
> Later the IDE suggests me to "Assign Return Value to New Variable" but the
> signature of the method is:
> public void persist(ClienteActividadPago o) which inherits from an Abstract
> DAO Class -> public void persist(T entity)

Accepting the suggestion creates an instance of ClienteActividadPagoDAO!
Comment 4 Svata Dedic 2017-05-17 09:10:21 UTC
Re. initial report - I could not reproduce it (missing hint). Please try to narrow the case to a simple source with no or little external dependencies which I can also download/use for testing.

Re. comment #2 - it's a bug, fixed as jet-main#a61eb34271e8

Lowering priority.
Comment 5 Quality Engineering 2017-05-24 19:38:54 UTC
Integrated into 'main-silver', will be available in build *201705241652* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/a61eb34271e8
User: Svata Dedic <sdedic@netbeans.org>
Log: #268895: do not offer hint if the method return not assignable to the computed type of the to-be-declaration
Comment 6 Quality Engineering 2017-06-25 01:46:58 UTC
Integrated into 'main-silver', will be available in build *201706250001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/e0fc11955579
User: Svata Dedic <sdedic@netbeans.org>
Log: #268895: fixed broken behaviour for generic return types