loadCompiledFunction is deprecated, so rewrite to eliminate its use.

parent 4287639b
......@@ -219,8 +219,10 @@ public class AutoloadedFunctionProxy extends Function {
LispThread thread = LispThread.currentThread();
LispObject value = AUTOLOADING_CACHE.symbolValue(thread);
if (value instanceof Nil)
return loadCompiledFunction(name);
if (value instanceof Nil) {
byte[] bytes = readFunctionBytes(new Pathname(name));
return (bytes == null) ? null : loadClassBytes(bytes);
Hashtable cache = (Hashtable)value.javaInstance();
byte[] bytes = (byte[])cache.get(name);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment