Commit 1a39673a authored by Marco Descher's avatar Marco Descher
Browse files

[23065] Change class loader for CompatibilityClassResolver

parent a2a6acd9
Pipeline #22190 passed with stages
in 4 minutes and 26 seconds
......@@ -14,15 +14,15 @@ public class CompatibilityClassResolver {
public Class<?> resolveClass(ObjectStreamClass desc) throws ClassNotFoundException{
if (desc.getName().equals("ch.elexis.data.Kontakt$statL")) {
return Thread.currentThread().getContextClassLoader()
return CompatibilityClassResolver.class.getClassLoader()
.loadClass("ch.elexis.core.jpa.model.util.compatibility.Kontakt$statL");
}
if (desc.getName().equals("ch.elexis.util.MFUList")) {
return Thread.currentThread().getContextClassLoader()
return CompatibilityClassResolver.class.getClassLoader()
.loadClass("ch.elexis.core.jpa.model.util.compatibility.MFUList");
}
if (desc.getName().equals("ch.elexis.util.MFUList$Entry")) {
return Thread.currentThread().getContextClassLoader()
return CompatibilityClassResolver.class.getClassLoader()
.loadClass("ch.elexis.core.jpa.model.util.compatibility.MFUList$Entry");
}
return null;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment