Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.6-beta-1
-
None
Description
def foo() { integer.metaClass = null integer.metaClass = null } foo()
of course this script fails, but interesting is that the trace reports the second integer.metaClass = null line as the source of the error, instead of the first one. Adding more code will show that the error reports always the last line of code in the method. I confirmed the error does not happen in current 1.5
Attachments
Issue Links
- is related to
-
GROOVY-3067 Incorrect line number reporting when exception occurs inside if statement
- Closed