summaryrefslogtreecommitdiff
path: root/src/main/java/com/c2kernel/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/c2kernel/utils')
-rw-r--r--src/main/java/com/c2kernel/utils/CastorXMLUtility.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/c2kernel/utils/CastorXMLUtility.java b/src/main/java/com/c2kernel/utils/CastorXMLUtility.java
index e8e3ee4..5d279bf 100644
--- a/src/main/java/com/c2kernel/utils/CastorXMLUtility.java
+++ b/src/main/java/com/c2kernel/utils/CastorXMLUtility.java
@@ -76,17 +76,17 @@ public class CastorXMLUtility
// init the castor mapping using the classloader of the class "CastorXMLUtility"
Mapping thisMapping = new Mapping(defaultClassLoader);
- HashSet<URL> loadedMapURLs = new HashSet<URL>();
+ HashSet<String> loadedMapURLs = new HashSet<String>();
try {
int wMapIdx=0;
while( sTokenizer.hasMoreTokens() ) {
String thisMap = sTokenizer.nextToken();
- URL thisMapURL = new URL(mapURL, thisMap);
+ String thisMapURL = new URL(mapURL, thisMap).toString();
wMapIdx++;
if( !loadedMapURLs.contains(thisMapURL) ) {
Logger.msg( 3,
String.format("CastorXMLUtility.<init>: Adding mapping file (%d/%d):[%s]", wMapIdx, wNbMap, thisMapURL));
- thisMapping.loadMapping( thisMapURL );
+ thisMapping.loadMapping( new URL(thisMapURL) );
loadedMapURLs.add( thisMapURL );
}
else {