identityMapClass =
Class.forName("org.apache.commons.collections.map.IdentityMap");
// fallback for Java 1.3
}
catch (ClassNotFoundException ee) {
throw new SerializerException(
"Skaringa needs an implemation "
+ "of an identity hash map either from JDK >1.4 "
+ "or from Jakarta commons collections");
}
}
try {
_objectIdMap = (Map) identityMapClass.newInstance();
}
catch (InstantiationException e) {
throw new SerializerException(e.toString());
}
catch (IllegalAccessException e) {
throw new SerializerException(e.toString());
}
}