Chapter 4. Known issues

OpenJDK 17 might include known issues. Solutions might exist for some of these known issues.

XPath expressions

OpenJDK 17 specifies new default limits for XPath expressions. If you find that your code is exceeding these limits, you can raise them by passing the following parameters to your OpenJDK deployment or by setting the JAVA_TOOL_OPTIONS environment variable to use them:

  • -Djdk.xml.xpathExprGrpLimit, which defaults to 10
  • -Djdk.xml.xpathExprOpLimit, which defaults to 100
  • -Djdk.xml.xpathTotalOpLimit, which defaults to 10,000

These default limits restrict the number of expression groups, the number of operators in a single expression, and the total number of operators.