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

verifyerror when expecting a MissingMethodException

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.8.0
    • Fix Version/s: None
    • Component/s: bytecode
    • Labels:
      None

      Description

      This program is incorrect, because the foo() method isn't static:

      class Sample {
              public static void main(String[] args) {
                      foo();
              }
      
              public void foo() {
              }
      }
      

      On 1.7.8 it produces a missingmethodexception, on 1.8.0 I get:

      aclement> java Sample
      Exception in thread "main" java.lang.VerifyError: (class: Sample, method: main signature: ([Ljava/lang/String;)V) Incompatible object argument for function call

        Attachments

          Activity

            People

            • Assignee:
              blackdrag Jochen Theodorou
              Reporter:
              aclement Andy Clement
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: