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

VerifyError with ! and instanceof

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-JSR-5
    • 1.0-RC-1
    • class generator
    • None

    Description

      > class MyClass { }
      >
      > if (! new MyClass() instanceof MyClass){}
      > —
      > produces
      > —
      > Caught: java.lang.VerifyError: (class: xxx, method: run signature:
      > ()Ljava/lang/Object Expecting to find object/array on stack

      the compiler should pass or fail but produce only valid byte code when passed

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            codevise Dierk König
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: