The GitHub Actions job "Dependency Review" on 
commons-jxpath.git/JXPATH-204-union-nodeset has failed.
Run started by GitHub user akashchamp (triggered by akashchamp).

Head commit for run:
27e2558fcf5d2c66e5f19bac7c57758f0febdde2 / Akash Kumar 
<[email protected]>
[JXPATH-204] Eagerly evaluate UnionContext before returning its value

UnionContext only populates its NodeSet lazily, inside setPosition().
A caller that reads getValue() without first iterating the context
(for example, an extension function invoked with a union expression,
e.g. test:fn(a | b), as one of its arguments) received an empty
NodeSet instead of the union of the operand node-sets.

Override getValue() to force the node set to be built via
getContextNodeList() before delegating to the parent implementation,
per the fix suggested in the JIRA report.

Adds a regression test in ExtensionFunctionTest that invokes a custom
NodeSet-consuming function with a union of two location paths and
asserts the full pointer count is seen.

Generated-by: Claude Sonnet 5 (Claude Code)

Report URL: https://github.com/apache/commons-jxpath/actions/runs/36040832806

With regards,
GitHub Actions via GitBox

Reply via email to