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 236385 - static imports not resolved correctly
Summary: static imports not resolved correctly
Status: RESOLVED INCOMPLETE
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: PC Mac OS X
: P3 normal with 1 vote (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-25 19:09 UTC by jag
Modified: 2013-10-30 15:29 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of incorrect errors. (159.42 KB, image/png)
2013-09-25 19:09 UTC, jag
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jag 2013-09-25 19:09:55 UTC
Created attachment 140483 [details]
Screenshot of incorrect errors.

I have files with "import static ....." that compile correctly with javac and work correctly in NetBeans 7.3.1, but in 7.4 RC1 methods that should have been resolved by the static import are flagged as errors, and the static import is flagged as unused.  In the attached screenshot I edited one line to directly reference the class being statically imported, and it gets no errors.  This happens in a fair number of files on a large codebase.  Doing a clean build or restarting NetBeans makes no difference.
Comment 1 Jiri Prox 2013-09-26 09:51:22 UTC
Can you please delete cache dir (it will be re-created automatically) and check if it helps?

If not, please attach source of MapUtilities class, at least the important parts

Thanks