RFR: 8354084: Streamline XPath API's extension function control [v5]
Joe Wang
joehw at openjdk.org
Wed Apr 16 16:26:41 UTC 2025
> Streamline the extension function control in the XPath API by relying solely on [XPathFunctionResolver](https://docs.oracle.com/en/java/javase/24/docs/api/java.xml/javax/xml/xpath/XPathFunctionResolver.html), which provides a secure and developer-defined mechanism. Remove the feature FEATURE_SECURE_PROCESSING and jdk.xml.enableExtensionFunctions from the decision path that are redundant with regard to XPath's Extension Functions.
>
> Note the comment in JAXPExtensionsProvider, starting at "JAXP 1.3 spec says When ...", was not accurate. Refer to the spec: https://docs.oracle.com/en/java/javase/24/docs/api/java.xml/javax/xml/XMLConstants.html#FEATURE_SECURE_PROCESSING, FSP does not have specific requirement for the XPath functions.
>
> Tests:
> Tier1 - 3 passed with regard to this change. There were unrelated/known failures (e.g. bug8329757).
> JCK passed except the previously reported issue (JCK-7322355).
Joe Wang has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains five additional commits since the last revision:
- Merge branch 'master' into JDK-8354084
- update javadoc for the jdk.xml.enableExtensionFunctions property
- rewind resource files, leave them to L10n resource files update
- add copyright and docs
- 8354084: Streamline XPath API's extension function control
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/24605/files
- new: https://git.openjdk.org/jdk/pull/24605/files/4f26a489..8359153c
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=24605&range=04
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=24605&range=03-04
Stats: 179596 lines in 307 files changed: 10747 ins; 168002 del; 847 mod
Patch: https://git.openjdk.org/jdk/pull/24605.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/24605/head:pull/24605
PR: https://git.openjdk.org/jdk/pull/24605
More information about the core-libs-dev
mailing list