Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.6-beta-1
-
Fix Version/s: 1.6-rc-1, 1.7-beta-1
-
Component/s: class generator
-
Labels:None
-
Testcase included:yes
-
Number of attachments :
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
Issue Links
- is related to
-
GROOVY-3067
Incorrect line number reporting when exception occurs inside if statement
-
Fixed now, just missing some tests.