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.
Created attachment 147828 [details] Netbeans report error when @Log annotation used in static method When @Log annotation is used then you are able to use log.info(), log.fine etc. methods in your code, without creating log object. This is correct usage in groovy (http://groovy.codehaus.org/Logging). In Neatbeans 8.0 such a code: private static exampleMethod (_opts) { log.info ("Parsing cofiguration files") } is reported as an error. It should be reported as an error, because this code compile correctly.
full code: @Log public class Compare { private static exampleMethod (_opts) { log.info ("Parsing cofiguration files") } } I'v made a mistake in bug description: It should be reported as an error, because this code compile correctly. should be It should NOT be reported as an error, because this code compile correctly.