Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlyn Normington2011-05-25 10:31:54 -0400
committerGlyn Normington2011-05-25 10:31:54 -0400
commit6adb92b7ec25c10df4317d77c7f94b42903a7c22 (patch)
tree857c8932344cd1835ed08ae272660023a6e3dde2
parent30339d3848c42be52196f53955177e083908dde2 (diff)
downloadorg.eclipse.virgo.kernel-6adb92b7ec25c10df4317d77c7f94b42903a7c22.tar.gz
org.eclipse.virgo.kernel-6adb92b7ec25c10df4317d77c7f94b42903a7c22.tar.xz
org.eclipse.virgo.kernel-6adb92b7ec25c10df4317d77c7f94b42903a7c22.zip
bug 339296: make ExtendedClassNotFoundException reference to class loader volatile
-rw-r--r--org.eclipse.virgo.kernel.osgi/src/main/java/org/eclipse/virgo/kernel/osgi/framework/ExtendedClassNotFoundException.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.virgo.kernel.osgi/src/main/java/org/eclipse/virgo/kernel/osgi/framework/ExtendedClassNotFoundException.java b/org.eclipse.virgo.kernel.osgi/src/main/java/org/eclipse/virgo/kernel/osgi/framework/ExtendedClassNotFoundException.java
index 91118903..2bb5fcaa 100644
--- a/org.eclipse.virgo.kernel.osgi/src/main/java/org/eclipse/virgo/kernel/osgi/framework/ExtendedClassNotFoundException.java
+++ b/org.eclipse.virgo.kernel.osgi/src/main/java/org/eclipse/virgo/kernel/osgi/framework/ExtendedClassNotFoundException.java
@@ -24,7 +24,8 @@ public class ExtendedClassNotFoundException extends ClassNotFoundException {
private static final long serialVersionUID = 6045566593339869456L;
- private final ClassLoader classLoader;
+ // Do not attempt to serialise the class loader as it is probably not serialisable.
+ private final transient ClassLoader classLoader;
public ExtendedClassNotFoundException(ClassLoader classLoader, ClassNotFoundException cause) {
super(cause.getMessage() + " in " + classLoader, cause);

Back to the top