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 249956 - False positive "cannot find symbol"
Summary: False positive "cannot find symbol"
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0.2
Hardware: PC Other
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-22 21:33 UTC by lukas.eder
Modified: 2015-01-28 10:26 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
False positive: "cannot find symbol" (159.74 KB, image/png)
2015-01-22 21:33 UTC, lukas.eder
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lukas.eder 2015-01-22 21:33:58 UTC
Created attachment 151627 [details]
False positive: "cannot find symbol"

I have a configuration where a compilation error is reported by the Java editor for a single type (Java 8 interface). The error is consistently reported for all references of org.jooq.lambda.Seq in src/main/java from classes in the org.jooq.lambda package in src/main/test. Please consider the screenshot for details.

The error is only reported in the editor and the package overview, not in the actual compilation output building and running the tests works just fine.

If you need, the sources of the jOOλ project can be download from here:
https://github.com/jOOQ/jOOL

In case we change something in the mean time in jOOλ, the error appeared in this revision:
https://github.com/jOOQ/jOOL/tree/10e18746f262f01359cfc3a726cf8aac37404981

Let me know if you need more info to reproduce this.
Comment 1 lukas.eder 2015-01-22 21:40:57 UTC
Note, I'm using an early access jdk1.8.0_40 build because javac in jdk1.8.0_25 or 1.8.0_31 has other bugs that prevent jOOλ from being compilable.

C:\Users\Lukas\workspace\jOOL>java -version
java version "1.8.0_40-ea"
Java(TM) SE Runtime Environment (build 1.8.0_40-ea-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b16, mixed mode)
Comment 2 Dusan Balek 2015-01-28 10:26:30 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/3b78fae10f80