jdaugherty opened a new issue, #375:
URL: https://github.com/apache/grails-intellij-plugin/issues/375

   ***What steps will reproduce the issue?***
   1\. Create a Grails project that has a class with a non static method that 
could be static with the exception of having a non static logger. See 
screenshot for example code.
   ***What is the expected result?***
   
   Inspection is not triggered-
   
   ***What happens instead?***
   
   Inspection "Method may be static" is shown. If building example we get the 
error "46: Apparent variable 'log' was found in a static scope but doesn't 
refer to a local variable, static field or class."  See screenshot for code.
   
   Also, the IDE should show the above case as a compile error (static method 
with non-static content) since the software does not compile.
   
   ---
   
   *Imported from 
[IDEA-297927](https://youtrack.jetbrains.com/issue/IDEA-297927) · Type: Bug · 
Votes: 0*
   *Comments, attachments, dates and reporter are not part of the export — 
follow the link above for the full history.*
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to