Nikola Sprljan created XERCESJ-1665:
---------------------------------------
Summary: DTDGrammar.QNameHashtable.get(String key) compares by
reference
Key: XERCESJ-1665
URL: https://issues.apache.org/jira/browse/XERCESJ-1665
Project: Xerces2-J
Issue Type: Bug
Components: DTD
Reporter: Nikola Sprljan
Priority: Minor
When key is matched with bucket the reference comparison is done:
{noformat}
if ((String)bucket[j] == key) {
{noformat}
This will work if a string literal is provided as a key, but not for any String
object. As a consequence dtdGrammar.getElementDeclIndex(String s) does not work
for String objects.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]