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 235704 - Incorrect hint recommending static final log
Summary: Incorrect hint recommending static final log
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.4
Hardware: PC All
: P2 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-09 12:52 UTC by Petr Jiricka
Modified: 2013-09-20 08:31 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Jiricka 2013-09-09 12:52:02 UTC
I have a field like this:

@javax.inject.Inject
private Logger log;

The editor displays an error next to the log field saying "The logger declaration field log should be static and final"

I believe this is incorrect - an injected variable can't be static final, no?
Comment 1 Svata Dedic 2013-09-20 08:31:47 UTC
We do not support @annotation modifying the data flow yet; it would be good to cover this systematically in the next release.