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

Weird compiler error when using assert incorrectly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.6.6, 1.7-rc-1
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: