]> source.dussan.org Git - aspectj.git/commitdiff
Set exception root cause in ExtensibleURLClassLoader::findClass
authorAndy Russell <arussell123@gmail.com>
Fri, 8 Dec 2023 20:20:45 +0000 (15:20 -0500)
committerAlexander Kriegisch <Alexander@Kriegisch.name>
Sun, 10 Dec 2023 02:50:33 +0000 (03:50 +0100)
Fixes #266.

weaver/src/main/java/org/aspectj/weaver/bcel/ExtensibleURLClassLoader.java

index dd372e5e2fe752e85726eac4cf5c7f3438f5db26..efe3f7d31a4e50df0fd7f5b57af59e98fb1e9e8a 100644 (file)
@@ -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);
                }
        }