Bug - SuppressWarning doesn't work for Persistence ORM Inspection

If you set Persistence ORM Inspection to "Error" level, and you put a suppresswarning annotation at class or method level, the "red underline" will disappear, but the code will refuse to compile anyway.

By the way: is this forum the best way to report bug to the development version of idea? In jira I can't submit bugs on the IDEADEV project.

Thank you.

6 comments

you can file bugs for project "IDEA: Feedback (IDEA)", if they're accepted they will be moved to IDEADEV

0

Salvatore Insalaco wrote:

If you set Persistence ORM Inspection to "Error" level, and you put a suppresswarning annotation at class or method level, the "red underline" will disappear, but the code will refuse to compile anyway.

This is normal, if you say you don't want to see warnings (or errors)
then they won't be shown ...

By the way: is this forum the best way to report bug to the development version of idea? In jira I can't submit bugs on the IDEADEV project.

Idea bugs (with any version) are submitted to the IDEA project and then
the Jetbrains team move them to IDEADEV or IDEABKL when they have
processed them.

R

0

That's true and logical for Java Errors, but for an inspection set as "error" there's no way to tell the system to ignore them for a particular method/class?
I find it a bit illogical to let the user hide an inspection error but stopping him in the compile phase.

0

Salvatore Insalaco wrote:

That's true and logical for Java Errors, but for an inspection set as "error" there's no way to tell the system to ignore them for a particular method/class?
I find it a bit illogical to let the user hide an inspection error but stopping him in the compile phase.


Jira issue is created.
http://www.jetbrains.net/jira/browse/IDEADEV-10357

0

Salvatore Insalaco wrote:

That's true and logical for Java Errors, but for an inspection set as "error" there's no way to tell the system to ignore them for a particular method/class?
I find it a bit illogical to let the user hide an inspection error but stopping him in the compile phase.


At the moment IDEA does not have configuration for this kind of issues.
You can set error level for ORM inspection to warning so that your
compilation will complete OK.

I've created the Jira issue and we will consider it.
http://www.jetbrains.net/jira/browse/IDEADEV-10357

0

This feature wouldn't be so important if the pu validation worked for all cases, here are a couple of examples where it doesn't:

http://www.jetbrains.net/jira/browse/IDEA-9405
http://www.jetbrains.net/jira/browse/IDEA-9404

0

Please sign in to leave a comment.