invalid warning for Groovy methods that throw an exception
IDEA 8.0 gives me a "Not all execution paths return a value" warning on any Groovy method that throws an exception. For example:
int foo(int bar) {
if (bar == 0) throw new Exception()
return bar
}
This method generates the warning. Removing the first line makes the warning go away.
请先登录再写评论。
Mark Smith wrote:
I've filed a JIRA issue: http://www.jetbrains.net/jira/browse/GRVY-1901
You may watch it to be notified on the progress