8177286: AttributeSet: attempt to compare Qname and String
authorjoehw
Tue, 27 Nov 2018 09:40:32 -0800
changeset 52699 44fe5fab538a
parent 52698 ca6b58b8ffc5
child 52700 b206bdfb9fe2
8177286: AttributeSet: attempt to compare Qname and String Reviewed-by: lancea
src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/AttributeSet.java
--- a/src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/AttributeSet.java	Tue Nov 27 18:14:27 2018 +0100
+++ b/src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/AttributeSet.java	Tue Nov 27 09:40:32 2018 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
  */
 /*
  * Licensed to the Apache Software Foundation (ASF) under one or more
@@ -95,7 +95,7 @@
             parser.reportError(Constants.ERROR, err);
         }
         _name = parser.getQNameIgnoreDefaultNs(name);
-        if ((_name == null) || (_name.equals(EMPTYSTRING))) {
+        if ((_name == null) || (_name.getStringRep().equals(EMPTYSTRING))) {
             ErrorMsg msg = new ErrorMsg(ErrorMsg.UNNAMED_ATTRIBSET_ERR, this);
             parser.reportError(Constants.ERROR, msg);
         }