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

Enum with vararg argument to the constructor ignores everything except the first argument

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.5
    • 2.4.0-rc-1
    • groovy-runtime
    • None
    • JVM: 1.6.0_24 and 1.7.0_06-icedtea

    Description

      enum with vararg argument to the constructor ignores everything except the first argument.

      Included are two tests that are reproducible with groovy at the command line. Works fine using varargs as an argument for a class constructor - sample also included.

      Attachments

        1. EnumVarargTest.groovy
          0.4 kB
          James Pettyjohn
        2. WorkingVarargTest.groovy
          0.4 kB
          James Pettyjohn

        Activity

          People

            Unassigned Unassigned
            japettyjohn James Pettyjohn
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: