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

        Mark Thomas made changes -
        Workflow jira [ 12970304 ] Default workflow, editable Closed status [ 12978090 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 02:11:23 UTC 2015 [ 1428286283443 ]
        Mark Thomas made changes -
        Workflow jira [ 12732460 ] Default workflow, editable Closed status [ 12744329 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 13:32:57 UTC 2015 [ 1428240777691 ]
        Paul King made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Jochen Theodorou made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Jochen Theodorou made changes -
        Resolution Fixed [ 1 ]
        Status Closed [ 6 ] Reopened [ 4 ]
        Jochen Theodorou made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s 1.7.x [ 15538 ]
        Resolution Fixed [ 1 ]
        Assignee blackdrag blackdrag [ blackdrag ]
        Fix Version/s 2.0-rc-3 [ 18556 ]
        Guillaume Delcroix made changes -
        Fix Version/s 1.7-beta-x [ 15538 ]
        Fix Version/s 1.7-beta-1 [ 14014 ]
        Guillaume Delcroix made changes -
        Fix Version/s 1.6.3 [ 15251 ]
        Guillaume Delcroix made changes -
        Fix Version/s 1.6.3 [ 15251 ]
        Fix Version/s 1.6.2 [ 15151 ]
        Guillaume Delcroix made changes -
        Field Original Value New Value
        Fix Version/s 1.6.2 [ 15151 ]
        Fix Version/s 1.7-beta-1 [ 14014 ]
        zak jacobson created 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