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

Weird compiler error when using assert incorrectly

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.6.6, 1.7-rc-1
    • Component/s: None
    • Labels:
      None

      Description

      I used assert the wrong way round like:

      assert "error message should have contained template name" : "Template not found for name [bad] .+" ==~ e.message
      

      And got a horrible error:

      java.lang.VerifyError: (class: ConsoleScript1, method: run signature: ()Ljava/lang/Object;) Expecting to find object/array on stack
      

        Attachments

          Activity

            People

            • Assignee:
              blackdrag Jochen Theodorou
              Reporter:
              graemerocher Graeme Rocher
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: