diff options
author | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2012-01-06 12:40:14 +0000 |
---|---|---|
committer | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2012-01-06 12:40:14 +0000 |
commit | a04a4e90df5f46bc8b91d9ba0ad8293fe75fd7e1 (patch) | |
tree | 2d818408d63400f14de95b97c149674425d41d9a /sca-java-2.x/trunk/modules | |
parent | 31f71e8e078644469dd2ed93d5873fc1050062e4 (diff) |
TUSCANY-4004 - add a comment highlighting some concern about import processing.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1228157 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules')
-rw-r--r-- | sca-java-2.x/trunk/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/WSDLModelResolver.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sca-java-2.x/trunk/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/WSDLModelResolver.java b/sca-java-2.x/trunk/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/WSDLModelResolver.java index 354cca8392..e58405a8ea 100644 --- a/sca-java-2.x/trunk/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/WSDLModelResolver.java +++ b/sca-java-2.x/trunk/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/WSDLModelResolver.java @@ -511,7 +511,9 @@ public class WSDLModelResolver implements ModelResolver { // set the correct WSDLDefinition import relationships. for (Map.Entry<String, List<javax.wsdl.Import>> entry : ((Map<String, List<javax.wsdl.Import>>)definition.getImports()).entrySet()) { - if (!entry.getKey().equals(definition.getTargetNamespace())) { + if (!entry.getKey().equals(definition.getTargetNamespace())) { + // TUSCANY-4004 - This looks a bit dodgy as the wsdlDefinition object will be the same + // for multiple imports. WSDLDefinition wsdlDefinition = wsdlFactory.createWSDLDefinition(); wsdlDefinition.setUnresolved(true); wsdlDefinition.setNamespace(entry.getKey()); |