Request for backport the OpenJDK fix in XSLTC.java to JDK11 & JDK17
Cheng Jin
jincheng at ca.ibm.com
Fri Dec 10 03:30:15 UTC 2021
Hi there,
As for the bug with the class name in XSLTC.java I previously raised at
https://mail.openjdk.java.net/pipermail/core-libs-dev/2021-November/083135.html
,
I notice it has been resolved at
https://bugs.openjdk.java.net/browse/JDK-8276657 as follows:
https://github.com/openjdk/jdk/blob/a093cdddaf5ab88eb84a147e523db5c3e1be54be/src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/XSLTC.java
public boolean compile(InputSource input, String name) {
try {
// Reset globals in case we're called by compile(ArrayList v);
reset();
// The systemId may not be set, so we'll have to check the URL
String systemId = null;
if (input != null) {
systemId = input.getSystemId();
}
// Set the translet class name if not already set
if (_className == null) {
if (name != null) {
setClassName(name);
}
else if (systemId != null && !systemId.isEmpty()) { <------
String clsName = Util.baseName(systemId);
if (clsName != null && !clsName.isEmpty()) {
setClassName(clsName);
}
}
With this fix at https://git.openjdk.java.net/jdk/pull/6620, would you
please backport it to JDK11 & JDK17 given the code there is at the same
place? Thanks in advance.
Thanks and Best Regards
Cheng Jin
More information about the core-libs-dev
mailing list