tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rf...@apache.org
Subject svn commit: r659651 - /incubator/tuscany/java/sca/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/Java2WSDLGeneratorImpl.java
Date Fri, 23 May 2008 20:40:28 GMT
Author: rfeng
Date: Fri May 23 13:40:27 2008
New Revision: 659651

URL: http://svn.apache.org/viewvc?rev=659651&view=rev
Log:
Fix the ClassCastException

Modified:
    incubator/tuscany/java/sca/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/Java2WSDLGeneratorImpl.java

Modified: incubator/tuscany/java/sca/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/Java2WSDLGeneratorImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/Java2WSDLGeneratorImpl.java?rev=659651&r1=659650&r2=659651&view=diff
==============================================================================
--- incubator/tuscany/java/sca/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/Java2WSDLGeneratorImpl.java
(original)
+++ incubator/tuscany/java/sca/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/Java2WSDLGeneratorImpl.java
Fri May 23 13:40:27 2008
@@ -118,13 +118,7 @@
 
         Node node = xform.transform(stream, null);
 
-        Document doc = null;
-        try {
-            doc = (Document)node;
-        } catch (ClassCastException e) {
-            e.printStackTrace();
-            throw new IllegalArgumentException("Didn't get back a Document DOM object");
-        }
+        Document doc = node.getOwnerDocument();
 
         // pretty-print WSDL document
         OutputFormat format = new OutputFormat(doc);



Mime
View raw message