Rini Angreani created GEOT-4094:
-----------------------------------
Summary: Adding a bracket for multiple conditions in
BindingPropertyExtractorxs
Key: GEOT-4094
URL: https://jira.codehaus.org/browse/GEOT-4094
Project: GeoTools
Issue Type: Bug
Components: xsd extensions
Reporter: Rini Angreani
Assignee: Justin Deoliveira
Attachments: BindingPropertyExtractor.patch
This line of code is causing me problems:
line 334 in BindingPropertyExtractor:
if (child.getName().equals(partContent.getName()) &&
child.getTargetNamespace()==null?
partContent.getTargetNamespace()==null :
child.getTargetNamespace().equals(partContent.getTargetNamespace())) {
notFound = false;
break;
}
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
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel