aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/runtime/Desc.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/javassist/runtime/Desc.java')
-rw-r--r--src/main/javassist/runtime/Desc.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/javassist/runtime/Desc.java b/src/main/javassist/runtime/Desc.java
index ee20d059..0b1cef51 100644
--- a/src/main/javassist/runtime/Desc.java
+++ b/src/main/javassist/runtime/Desc.java
@@ -38,8 +38,7 @@ public class Desc {
throws ClassNotFoundException
{
if (useContextClassLoader)
- return Thread.currentThread().getContextClassLoader()
- .loadClass(name);
+ return Class.forName(name, true, Thread.currentThread().getContextClassLoader());
else
return Class.forName(name);
}