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 268014 - false positive "no method found" error with generics
Summary: false positive "no method found" error with generics
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: Dev
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-14 09:25 UTC by fkaempfer
Modified: 2016-11-28 18:18 UTC (History)
0 users

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 fkaempfer 2016-09-14 09:25:00 UTC
This issue I had for a long time with netbeans when developing with JPA criteria builder. Sometimes even though a valid type argument binding exits, netbeans does not recognize it.

The following code I have created to distill the problem compiles with javac, but shows errors in the Java editor:

https://gist.github.com/fkaempfer/4cbb09b2d47d025cbd67931f99610bba

I hope this helps you find the problem.
Comment 1 fkaempfer 2016-09-14 09:26:18 UTC
I'm using  java version "1.8.0_102" with netbeans dev.
Comment 2 fkaempfer 2016-11-17 09:34:47 UTC
While this bug was still present in netbeans 8.2, it seems to be resolved in the nightly snapshot (201611170001)
Comment 3 matthias42 2016-11-22 15:48:07 UTC
I agree with the assesment of fkaempfer. The false positives made me consider going back to 8.1. I now use the nightly 201611210001 and currently it looks good.
Comment 4 Dusan Balek 2016-11-28 11:04:59 UTC
Already fixed in jet-main.
Comment 5 matthias42 2016-11-28 18:18:51 UTC
I'm on the nightly and projects that are reported broken on 8.2 work correctly on the nightly build.