Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-1008

The numberOfChildren in PathELResolver is not correct

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 6.0.0
    • Fix Version/s: 6.0.1
    • Component/s: Databind 2
    • Labels:
      None

      Description

      I did some test, and the "Integer numOfKids = (Integer) ctx.getContext(AstValue.class);" in PathELResolver
      will return worng(previous) number if the expression has a bucket and only AstIdentifier int the bucket

      For example
      x.b[y.d].e
      When resolve x series, the numOfKids(4) is correct. and y series is correct(2) too

      However, if the expression is
      x.b[y].e

      the x series has the correct numOfKids(4), however y series is not, it is still 4 not 1,
      Because of y series doesn't has AstValue to put/clean the AstValue in context I think.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            dennis dennis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: