Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
I was experimenting with @Delegate and noticed that if the underlying class throws an exception, the delegating class has no line number.
Would be a nice enhancement to have the stack trace reference the line where the delegation was declared.
See attached example script which should show this output:
Foo! Caught: java.lang.Exception: blow up with bar java.lang.Exception: blow up with bar at Lower.blowup(delegatetest.groovy:15) at Lower$blowup.call(Unknown Source) at Upper.blowup(delegatetest.groovy) # no line number here at Upper$blowup.call(Unknown Source) at delegatetest.run(delegatetest.groovy:25)