Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-2464

ClassCastException when returning PRUNED_NODE in expression transformer

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.3, 4.0, 4.1.M2
    • Fix Version/s: 4.0.1, 4.1.B1
    • Component/s: Core Library
    • Labels:
      None

      Description

      This one is from pull request.
      Simple test case:

      Expression exp = ExpressionFactory.exp("(false and true) and true");
      Expression transformed = exp.transform(node -> {
          if(node instanceof ASTFalse) {
              return Expression.PRUNED_NODE;
          }
          return node;
      });
      assertEquals("true and true", transformed.toString());
      

        Attachments

          Activity

            People

            • Assignee:
              ntimofeev Nikita Timofeev
              Reporter:
              ntimofeev Nikita Timofeev
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: