From: Andy Russell Date: Fri, 8 Dec 2023 20:20:45 +0000 (-0500) Subject: Set exception root cause in ExtensibleURLClassLoader::findClass X-Git-Tag: V1_9_21~7 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6d72e7a60a64eb5c282ec39bcb5ba51ce1c7a471;p=aspectj.git Set exception root cause in ExtensibleURLClassLoader::findClass Fixes #266. --- diff --git a/weaver/src/main/java/org/aspectj/weaver/bcel/ExtensibleURLClassLoader.java b/weaver/src/main/java/org/aspectj/weaver/bcel/ExtensibleURLClassLoader.java index dd372e5e2..efe3f7d31 100644 --- a/weaver/src/main/java/org/aspectj/weaver/bcel/ExtensibleURLClassLoader.java +++ b/weaver/src/main/java/org/aspectj/weaver/bcel/ExtensibleURLClassLoader.java @@ -56,7 +56,7 @@ public abstract class ExtensibleURLClassLoader extends URLClassLoader { throw new ClassNotFoundException(name); } } catch (IOException ex) { - throw new ClassNotFoundException(name); + throw new ClassNotFoundException(name, ex); } }