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

numerous primitives declaration errors in a loose function

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-beta-5
    • 1.0-beta-6
    • None
    • None

    Description

      def func()

      { boolean index } org.codehaus.groovy.syntax.parser.UnexpectedTokenException: could not use '}

      ' at 3:1; found array type where none expected

      -8<--

      def func() {
      boolean index = true
      }

      or:

      def func() {
      int index = 1
      }

      java.lang.VerifyError: (class: ints, method: func signature: ()Ljava/lang/Object Expecting to find integer on stack

      -8<--

      Using Boolean or Integer works.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bingran Bing Ran
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: