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

The numberOfChildren in PathELResolver is not correct

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 6.0.1
    • 6.0.0
    • Databind 2
    • None

      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.

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

              Created:
              Updated:
              Resolved: