From 4522f569409d2b7843bf183b0e84c84d19afee70 Mon Sep 17 00:00:00 2001 From: Mark Evenson Date: Mon, 11 Nov 2024 20:22:16 +0100 Subject: [PATCH] Ensure MemoryClassLoader has a usable constructor Invoking JNEW-RUNTIME-CLASS before a JavaClassLoader has been instantiated will fail with a slightly mysterious error message, which can be fixed by providing a more general constructor. Fixes --- src/org/armedbear/lisp/MemoryClassLoader.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/org/armedbear/lisp/MemoryClassLoader.java b/src/org/armedbear/lisp/MemoryClassLoader.java index b824b660d..9a3e320ab 100644 --- a/src/org/armedbear/lisp/MemoryClassLoader.java +++ b/src/org/armedbear/lisp/MemoryClassLoader.java @@ -57,6 +57,11 @@ public MemoryClassLoader(JavaClassLoader parent) { this.internalNamePrefix = ""; } + public MemoryClassLoader(ClassLoader parent) { + super(parent); + this.internalNamePrefix = ""; + } + @Override protected Class loadClass(String name, boolean resolve) throws ClassNotFoundException {