You are viewing a plain text version of this content. The canonical link for it is here.
Posted to woden-dev@ws.apache.org by hu...@apache.org on 2007/01/05 12:38:26 UTC

svn commit: r492989 - /incubator/woden/trunk/java/src/org/apache/woden/internal/resolver/SimpleURIResolver.java

Author: hughesj
Date: Fri Jan  5 03:38:25 2007
New Revision: 492989

URL: http://svn.apache.org/viewvc?view=rev&rev=492989
Log:
Fix ClassCastException problem running tests with Ant.

Modified:
    incubator/woden/trunk/java/src/org/apache/woden/internal/resolver/SimpleURIResolver.java

Modified: incubator/woden/trunk/java/src/org/apache/woden/internal/resolver/SimpleURIResolver.java
URL: http://svn.apache.org/viewvc/incubator/woden/trunk/java/src/org/apache/woden/internal/resolver/SimpleURIResolver.java?view=diff&rev=492989&r1=492988&r2=492989
==============================================================================
--- incubator/woden/trunk/java/src/org/apache/woden/internal/resolver/SimpleURIResolver.java (original)
+++ incubator/woden/trunk/java/src/org/apache/woden/internal/resolver/SimpleURIResolver.java Fri Jan  5 03:38:25 2007
@@ -108,7 +108,7 @@
 		
 		// find location of schema catalog on the classpath. 
 		// This catalog has a hardcoded name and relative location.
-		URLClassLoader systemLoader = (URLClassLoader)this.getClass().getClassLoader();
+		ClassLoader systemLoader = this.getClass().getClassLoader();
 		URL schemaCatalogURL = systemLoader.getResource(schemaCatalogLocation + schemaCatalogFile);	
 		
 		if (schemaCatalogURL == null) {
@@ -263,7 +263,7 @@
 	 * @return
 	 * @throws URISyntaxException
 	 */
-	private Hashtable toURI(Properties p, URLClassLoader loader) throws URISyntaxException {
+	private Hashtable toURI(Properties p, ClassLoader loader) throws URISyntaxException {
 		// TODO change to throw a WSDLException
 
 		return toURI(p, loader, new Hashtable());
@@ -281,7 +281,7 @@
 	 * @return HashTable mapping resolved-from URIs to absolute resolved-to URIs 
 	 * @throws URISyntaxException
 	 */
-	private Hashtable toURI(Properties p, URLClassLoader loader, Hashtable h) throws URISyntaxException {
+	private Hashtable toURI(Properties p, ClassLoader loader, Hashtable h) throws URISyntaxException {
 		// TODO change to throw a WSDLException
 
 		if (p != null)



---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org