History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-18856
Type: Bug Bug
Status: Open Open
Assignee: Alexey Kudravtsev
Reporter: Sascha Weinreuter
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

Bad code is green: Annotation on static initializer

Created: 23 Jul 08 17:44   Updated: 23 Jul 08 17:46
Component/s: Editor. Error Highlighting

Build: 8,604
Severity: Medium


 Description  « Hide
public class BadCodeGreen {
    @SuppressWarnings({"SuspiciousToArrayCall"})
    static { // happens on instance initializer i.e. without "static" as well
        System.setProperty("...", "...");
    }
}
Information:Compilation completed with 2 errors and 0 warnings
Information:2 errors
Information:0 warnings
C:\work\BadCodeGreen.java
    Error:Error:line (8)illegal start of type
    Error:Error:line (11)<identifier> expected


 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.