8276657: XSLT compiler tries to define a class with empty name
Reviewed-by: naoto
This commit is contained in:
parent
8198807b4a
commit
a093cdddaf
@ -58,7 +58,7 @@ import org.xml.sax.XMLReader;
|
|||||||
* @author G. Todd Miller
|
* @author G. Todd Miller
|
||||||
* @author Morten Jorgensen
|
* @author Morten Jorgensen
|
||||||
* @author John Howard (johnh@schemasoft.com)
|
* @author John Howard (johnh@schemasoft.com)
|
||||||
* @LastModified: May 2021
|
* @LastModified: Nov 2021
|
||||||
*/
|
*/
|
||||||
public final class XSLTC {
|
public final class XSLTC {
|
||||||
|
|
||||||
@ -460,8 +460,11 @@ public final class XSLTC {
|
|||||||
if (name != null) {
|
if (name != null) {
|
||||||
setClassName(name);
|
setClassName(name);
|
||||||
}
|
}
|
||||||
else if (systemId != null && !systemId.equals("")) {
|
else if (systemId != null && !systemId.isEmpty()) {
|
||||||
setClassName(Util.baseName(systemId));
|
String clsName = Util.baseName(systemId);
|
||||||
|
if (clsName != null && !clsName.isEmpty()) {
|
||||||
|
setClassName(clsName);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ensure we have a non-empty class name at this point
|
// Ensure we have a non-empty class name at this point
|
||||||
|
Loading…
Reference in New Issue
Block a user