diff --git a/src/tap/config/TAPConfiguration.java b/src/tap/config/TAPConfiguration.java index 74da57e69adcfb35d4f9333bc3b77bd655cdfe73..86808adc93dcbd0def2ed6873d511f24bf54d081 100644 --- a/src/tap/config/TAPConfiguration.java +++ b/src/tap/config/TAPConfiguration.java @@ -161,7 +161,7 @@ public final class TAPConfiguration { return null; try{ - Class<? extends C> classObject = (Class<? extends C>)ClassLoader.getSystemClassLoader().loadClass(classPath); + Class<? extends C> classObject = (Class<? extends C>)Class.forName(classPath); if (!expectedType.isAssignableFrom(classObject)) throw new TAPException("The class specified by the property " + propertyName + " (" + value + ") is not implementing " + expectedType.getName() + "."); else