On 23/10/2025 16:19, Mukul Gandhi wrote:
:
I've just now tried to compile Xalan XSLT 3.0 source code, using JDK
25, and I get following errors,

[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] 
xalan-j_xslt3.0_mvn/src/main/java/org/apache/xpath/regex/PatternSyntaxException.java:[28,27]
package sun.security.action does not exist
[ERROR] 
xalan-j_xslt3.0_mvn/src/main/java/org/apache/xpath/regex/PatternSyntaxException.java:[98,31]
cannot find symbol
   symbol:   class GetPropertyAction
   location: class org.apache.xpath.regex.PatternSyntaxException
[INFO] 2 errors

Xalan's XSLT 3.0 implementation, includes source code of JDK 1.8's
regex classes, to implement XPath 3.1 regex functions. Any guidance on
how to resolve these issues, shall be helpful for the Xalan project.

JDK 6 to JDK 8, it was been a warning at compile time to use JDK internal APIs. This changed to be a compile-time error in JDK 9, and for code compiled to older releases, an error at run-time since JDK 16.

In the case of sun.security.action.GetPropertyAction then this was for the security manager case that is gone since JDK 24. So now needed now. There was a never a good reason to use this sun.* class directly as it just used AccessController.doPrivileged to invoke System.getProperty. So should be easy to replace the usage.

-Alan



Reply via email to