aboutsummaryrefslogtreecommitdiffstats
path: root/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java
diff options
context:
space:
mode:
authorOmair Majid <[email protected]>2011-02-22 19:15:05 -0500
committerOmair Majid <[email protected]>2011-02-22 19:15:05 -0500
commit44d552df84874d5a89cfe4881e344249947c7ed3 (patch)
tree0100823c99d6082972f0c82d954664e59d841e48 /netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java
parent76cdc1d4a5213a9968ab5de77108e573022ac485 (diff)
Fix PR638: JNLPClassLoader.loadClass(String name) can return null
2011-02-22 Omair Majid <[email protected]> Mark Greenwood <[email protected]> Fix PR638 * NEWS: Update with fix. * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java (loadClass): Throw ClassNotFoundException instead of returning null. * AUTHORS: Update.
Diffstat (limited to 'netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java')
-rw-r--r--netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java
index 1822c01..da3c4c3 100644
--- a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java
+++ b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java
@@ -1045,6 +1045,10 @@ public class JNLPClassLoader extends URLClassLoader {
}
}
+ if (result == null) {
+ throw new ClassNotFoundException(name);
+ }
+
return result;
}