DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22487>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22487 XSModelImpl.getComponentsByNamespace(Short, String): XSNamedMap has a comparison error Summary: XSModelImpl.getComponentsByNamespace(Short, String): XSNamedMap has a comparison error Product: Xerces2-J Version: 2.5.0 Platform: Other OS/Version: All Status: NEW Severity: Normal Priority: Other Component: DOM AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] * NOTE: The file version that I have was last updated as of v1.9. I downloaded the latest release package which unzipped as xerces-2_5_0 * I won't swear I am right, but I am 99% certain. I get some funny errors when I call this function using a cast.. in fact, the only time the function works correctly is when I call it after creating a string from a literal string -- e. g. String targetNamespace = "myTargetNamespace"; // works fine, if element exists, returns it XSNamedMap map = getComponentsByNamespace(ELEMENT..., targetNamespace); // does NOT work Vector vec = new Vector(); vec.add("myTargetNamespace"); map = getComponentsByNamespace(ELEMENT..., (String)vec.get(0)); Following is the code that (I think) is broken: <Starting at line 305 of XSModelImpl // try to find the grammar int i = 0; for (; i < fGrammarCount; i++) { if (fNamespaces[i] == namespace) <-----!!!!!!!!!!! NO!!!!! break; } if (i == fGrammarCount) return null; ///////// End code snip This is my version of the fix: // try to find the grammar int i = 0; for (; i < fGrammarCount; i++) { if (fNamespaces[i].equals(namespace)) break; } if (i == fGrammarCount) return null; ///////// End code snip No, I don't really feel all that special. Took a while to figure out what was up though! --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
