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.
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
Created attachment 162829 [details] IDE log
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)
(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!
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.
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
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