Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.6
-
None
Description
This fails with Groovyc: Access to java.lang.Object#message is forbidden
class Test { @groovy.transform.CompileStatic public static void main(String[] args) { try { println "foobar" } catch (e) { println e.message } } }
This passes:
class Test { @groovy.transform.CompileStatic public static void main(String[] args) { try { println "foobar" } catch (Throwable e) { println e.message } } }