Skip to content
Snippets Groups Projects
Commit d172c328 authored by gmantele's avatar gmantele
Browse files

[TAP] Fix Class loading MAJOR BUG: do not use a specific ClassLoader, but...

[TAP] Fix Class loading MAJOR BUG: do not use a specific ClassLoader, but Class.forName(String). The ClassLoader is different in a WebApplication than in a standalone ; TAP.fetchClass(...) worked before in a standalone but not in a WebApplication.
parent ddf84b1b
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment