Groovy
  1. Groovy
  2. GROOVY-3467

Boolean assignment optimized by compiler

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6
    • Fix Version/s: 2.0-rc-3
    • Component/s: Compiler
    • Labels:
      None
    • Environment:
      groovyConsole 1.6.0

      Description

      I think the attached script should pass. Specifically this line:

      X = [Y, Z]

      should go through setProperty("X", [null, null]) but instead it comes in as setProperty("X", true)

      I am using this feature for a DSL to define the rules for a binary decision tree.

      Added to the compiler because of this email on the list:
      http://tinyurl.com/cfuyah

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Jochen Theodorou
            Reporter:
            zak jacobson
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development