Rini Angreani created GEOT-4094:
Summary: Adding a bracket for multiple conditions in BindingPropertyExtractorxs
Issue Type: Bug
Components: xsd extensions
Reporter: Rini Angreani
Assignee: Justin Deoliveira
This line of code is causing me problems:
line 334 in BindingPropertyExtractor:
if (child.getName().equals(partContent.getName()) &&
child.getTargetNamespace()==null? partContent.getTargetNamespace()==null :
notFound = false;
In the unit test I'm writing for app-schema, it doesn't satisfy the first condition (child.getName().equals(partContent.getName())), however it still went on to notFound = false.
It might be a particular jdk I'm using (jdk 1.6_025 and also tried 1.6_013), or something particular in my environment.
However, when I put the second statement after the &&, the evaluation works fine.
I attached the patch that wraps the second big statement in brackets.
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira