Issue Details (XML | Word | Printable)

Key: GROOVY-2219
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Paul King
Reporter: Paul King
Votes: 0
Watchers: 0
Operations

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

VerifyError with derived class

Created: 17/Oct/07 05:54 AM   Updated: 19/Oct/07 07:52 AM
Component/s: parser
Affects Version/s: 1.1-rc-1
Fix Version/s: 1.1-rc-2

Time Tracking:
Not Specified


 Description  « Hide
Given the following class in Java:
public class Base {
        protected Base( Object o ) {
        }
    }

and the following Groovy script:

class Buggy extends Base {
        Buggy() {
            super( f() );
        }

        static Object f() {
            return null;
        }
    }

    Base b = new Buggy();

when running it, I get:

Caught: java.lang.VerifyError: (class: Buggy, method: <init> signature: ()V) Expecting to find object/array on stack


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