On IntelliJ IDEA IC 9.02 (95.66) with the Scala plugin v0.3.1478, using a @throws(classOf[Exception])-annotation on a method in Scala will be ignored by Java code in the same project.
The code compiles and runs just fine, this problem is only in the code editor.
For example, if defining @throws as follows:
Then, when using this method from Java, the throws-annotation will be ignored:
And as you can see, a syntax error is displayed.
- Might there be something wrong with my local setup?
- If not, what is the cause for this? Is it something we can be expected to be fixed in an upcoming version?
- If not, or if that's far from now: Is there a way to disable that specific syntax check, without disabling syntax checking altogether?