Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-2219

VerifyError with derived class

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1-rc-1
    • 1.1-rc-2
    • parser
    • None

    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
      

      Attachments

        Activity

          People

            paulk Paul King
            paulk Paul King
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: