Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.6.2
-
None
Description
public XSObject itemByName(String namespace, String localName) {
if (namespace != null)
namespace = namespace.intern();
for (int i = 0; i < fNSNum; i++) {
if (namespace == fNamespaces[i])
}
return null;
}
You are doing object comparison, when you should be doing the following:
if(namespace.equals(fNamespaces[i]))