IDEA doesn't highlight a compilation error
See the screenshot - initializing the static variable with method that may throw an exception (like static int i = f()) is an error but IDEA doesn't highlight it with red wave. It's only when I really compile the file I can see the error.
Attachment(s):
1.png
Please sign in to leave a comment.
Works fine for me. See attachment.
"Evgeny Goldin" <no_mail@jetbrains.com> wrote in message
news:17140715.1078851036687.JavaMail.itn@is.intellij.net...
throw an exception (like static int i = f()) is an error but IDEA doesn't
highlight it with red wave. It's only when I really compile the file I can
see the error.
Attachment(s):
error.bmp