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

Use of "int" causes method signature crash

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.0-beta-4
    • 1.0-beta-5
    • None
    • None
    • mac os x; beta-4 with latest snapshot jar

    Description

      Running this:

      #!/usr/bin/env groovy

      public class Test {
      public void test()

      { int x = 10; }

      }

      Test t = new Test()

      Results in:
      Exception in thread "main" java.lang.VerifyError: (class: Test, method:
      test signature: ()V) Expecting to find integer on stack
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:140)
      at test.class$(test.groovy)
      at test.run(test.groovy)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      Removing "int" eliminates the crash.

      Attachments

        Activity

          People

            Unassigned Unassigned
            backspaces Owen Densmore
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: