Commit 40def94e authored by Mark Evenson's avatar Mark Evenson

Tests for failing to find java call sites

Use JSTATIC-RAW instead of JSTATIC to more easily catch in JVM
debugger.

For the java.lang.Short.reverseBytes(short) following the failure in a
JVM debugger (Netbeans) shows that the parameter is not being matched
in Java.isApplicableMethod() as we declare our argument to an
java.lang.Integer by the time the match occurs.

c.f. <https://mailman.common-lisp.net/pipermail/armedbear-devel/2019-November/004017.html>.
parent 1629562e
(in-package :cl-user)
;; <https://mailman.common-lisp.net/pipermail/armedbear-devel/2019-November/004017.html>
(prove:plan 1)
(prove:isnt
(handler-case
(java:jstatic-raw "reverseBytes" "java.lang.Short" #x7f)
(error (e) (format *standard-output* "error: ~a~%" e)))
nil
"Calling java.lang.Short.reverseBytes(short)")
;; <http://trac.common-lisp.net/armedbear/ticket/259>
(prove:plan 1)
(prove:isnt
(handler-case
(java:jstatic-raw "asList" "java.util.Arrays"
(java:jnew-array (java:jclass "int") 1))
(error (e) (format *standard-output* "error: ~a~%" e)))
nil
"Calling java.util.Arrays.asList(int[1])")
(prove:finalize)
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