groovy
  1. groovy
  2. GROOVY-1322

RangeExpression doesn't implement Expression not allowing it to be the target of an assert

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0-JSR-5
    • Fix Version/s: 1.1-beta-1
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      if (2..<2) assert false
      if (2..2) assert true
      both work fine but:
      'assert 2..<2' returns:
      Caught: java.lang.AssertionError: Expression: <not implemented
      yet for class: org.codehaus.groovy.ast.expr.RangeExpression>

        Activity

        Guillaume Laforge made changes -
        Field Original Value New Value
        Assignee Guillaume Laforge [ guillaume ]
        Hide
        blackdrag blackdrag added a comment -

        implemented

        Show
        blackdrag blackdrag added a comment - implemented
        blackdrag blackdrag made changes -
        Resolution Fixed [ 1 ]
        Fix Version/s 1.1-beta-1 [ 13164 ]
        Status Open [ 1 ] Closed [ 6 ]
        Assignee Jochen Theodorou [ blackdrag ]

          People

          • Assignee:
            blackdrag blackdrag
            Reporter:
            Paul King
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: