Commit c4edce98 authored by mevenson@1c010e3e-69d0-11dd-93a8-456734b0d56f's avatar mevenson@1c010e3e-69d0-11dd-93a8-456734b0d56f
Browse files

Fix loading of JNA with recent JCALL improvements.

From Olof.
parent a3700bc7
......@@ -1065,7 +1065,9 @@ public final class Java
for (int i = 0; i < methodTypes.length; ++i) {
Class<?> methodType = methodTypes[i];
Object arg = args[i];
if (!isAssignable(arg.getClass(), methodType)) {
if (arg == null) {
return !methodType.isPrimitive();
} else if (!isAssignable(arg.getClass(), methodType)) {
return false;
}
}
......
......@@ -203,6 +203,11 @@
(jcall "offsetByCodePoints" "foobar" 0 #\Nul)
0)
(deftest jcall.7
(signals-error (jcall "offsetByCodePoints" "foobar" 0 nil)
#+abcl 'java-exception
#+allegro 'jlinker-error))
(deftest jfield.1
(type-of (jfield "java.lang.Integer" "TYPE"))
#+abcl java-object
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment