Author: gawor
Date: Tue May 29 11:17:37 2007
New Revision: 542608
URL: http://svn.apache.org/viewvc?view=rev&rev=542608
Log:
prevent looping if same schema file is imported multiple times from other
schema files
Modified:
incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/transport/http/WSDLQueryHandler.java
Modified:
incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/transport/http/WSDLQueryHandler.java
URL:
http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/transport/http/WSDLQueryHandler.java?view=diff&rev=542608&r1=542607&r2=542608
==============================================================================
---
incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/transport/http/WSDLQueryHandler.java
(original)
+++
incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/transport/http/WSDLQueryHandler.java
Tue May 29 11:17:37 2007
@@ -243,7 +243,7 @@
List<SchemaImport> impLst = CastUtils.cast(lst);
for (SchemaImport imp : impLst) {
String start = imp.getSchemaLocationURI();
- if (start != null) {
+ if (start != null && !doneSchemas.containsKey(start)) {
try {
//check to see if it's aleady in a URL format. If so,
leave it.
new URL(start);
@@ -257,7 +257,7 @@
List<SchemaReference> includes = CastUtils.cast(schema.getIncludes());
for (SchemaReference included : includes) {
String start = included.getSchemaLocationURI();
- if (start != null) {
+ if (start != null && !doneSchemas.containsKey(start)) {
try {
//check to see if it's aleady in a URL format. If so,
leave it.
new URL(start);