Skip to content

Commit

Permalink
Ensure MemoryClassLoader has a usable constructor
Browse files Browse the repository at this point in the history
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 <#685>
  • Loading branch information
easye committed Nov 11, 2024
1 parent d0a5253 commit 4522f56
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/org/armedbear/lisp/MemoryClassLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 4522f56

Please sign in to comment.