Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.5.4, 1.5.5
-
Fix Version/s: 1.6-rc-1, 1.5.8, 1.7-beta-1
-
Component/s: bytecode, class generator, command line processing
-
Labels:None
-
Environment:Groovy Version: 1.5.4 JVM: 1.5.0_13-119
Groovy Version: 1.5.5 JVM: 1.5.0_13-119
-
Testcase included:yes
-
Number of attachments :
Description
The following file contains a typo. It builds well with groovyc, but fails to run with groovy and raises an exception:
Caught: java.lang.VerifyError: (class: testCompile, method: aMethod signature: ()Ljava/lang/Object
Register 4 contains wrong type
def aMethod() {
try {
int i = 0
}
catch(AssertionError e) {
println e
}
catch(Throwable t) {
println e // THIS IS A TYPO, OUTSIDE OF THE SCOPE
}
}
aMethod()
fixed