Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-1440

Expression resolver breaks return value for empty lists

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 3.0.0.Alpha1
    • 2.1.0.CR1
    • Management
    • None

    Description

      ExpressionResolverImpl#resolveExpressionsRecursively

      does

      else if (type == ModelType.LIST) {
                  resolved = node.clone();
                  ModelNode list = new ModelNode();
                  for (ModelNode current : resolved.asList()) {
                      list.add(resolveExpressionsRecursively(current));
                  }
                  resolved = list;
              } 
      

      for list attributes, but in case that resolved value is empty list it would return list that is undefined instead of empty list.

      Attachments

        Activity

          People

            tomazcerar Tomaž Cerar (Inactive)
            tomazcerar Tomaž Cerar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: