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

ClassCastException when returning PRUNED_NODE in expression transformer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.3, 4.0, 4.1.M2
    • 4.0.1, 4.1.B1
    • Core Library
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: