History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: GROOVY-2760
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Jochen Theodorou
Reporter: Ricardo J. Méndez
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
groovy

groovyc compiles file, but running it fails with java.lang.VerifyError

Created: 17/Apr/08 11:41 AM   Updated: Yesterday 12:25 PM
Component/s: class generator, command line processing
Affects Version/s: 1.5.4, 1.5.5
Fix Version/s: 1.6-rc-1

Time Tracking:
Not Specified

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


 Description  « Hide
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()


 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.