groovy

VerifyError with derived class

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.1-rc-1
  • Fix Version/s: 1.1-rc-2
  • Component/s: parser
  • Labels:
    None
  • Number of attachments :
    0

Description

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

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: