Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Cannot Reproduce
-
1.6.3
-
None
-
None
Description
The following code when run in Groovy console produces no output whatsoever:
interface Callback { def execute(); } def test(Callback callable) { println "crap" } test({ throw new Exception("ugly")} as Callback, true)
The reason is the logic that formulates the message for the MissingMethodException is invoking the passed closure resulting in the exception contained within the closure being thrown and the original root cause being swallowed.