summaryrefslogtreecommitdiffstats
path: root/src/nativewindow/classes/com/sun
diff options
context:
space:
mode:
Diffstat (limited to 'src/nativewindow/classes/com/sun')
-rw-r--r--src/nativewindow/classes/com/sun/nativewindow/impl/NWReflection.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nativewindow/classes/com/sun/nativewindow/impl/NWReflection.java b/src/nativewindow/classes/com/sun/nativewindow/impl/NWReflection.java
index 89b6201..99c8547 100644
--- a/src/nativewindow/classes/com/sun/nativewindow/impl/NWReflection.java
+++ b/src/nativewindow/classes/com/sun/nativewindow/impl/NWReflection.java
@@ -44,7 +44,7 @@ public final class NWReflection {
public static final boolean isClassAvailable(String clazzName) {
try {
- Class clazz = Class.forName(clazzName);
+ Class clazz = Class.forName(clazzName, false, NWReflection.class.getClassLoader());
return null!=clazz;
} catch (Throwable e) { }
return false;
@@ -52,7 +52,7 @@ public final class NWReflection {
public static final Class getClass(String clazzName) {
try {
- return Class.forName(clazzName);
+ return Class.forName(clazzName, false, NWReflection.class.getClassLoader());
} catch (Throwable e) { }
return null;
}
@@ -62,7 +62,7 @@ public final class NWReflection {
Constructor factory = null;
try {
- factoryClass = Class.forName(clazzName);
+ factoryClass = getClass(clazzName);
if (factoryClass == null) {
throw new NativeWindowException(clazzName + " not available");
}