Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
abcl
abcl
Commits
59c1150b
Commit
59c1150b
authored
Aug 12, 2021
by
Mark
Browse files
Test for variadic arguments with more required parameters
parent
32af3433
Changes
1
Hide whitespace changes
Inline
Side-by-side
t/java-call-sites.lisp
View file @
59c1150b
...
...
@@ -66,6 +66,26 @@
;;; end <https://mailman.common-lisp.net/pipermail/armedbear-devel/2020-February/004037.html>
;;; <https://github.com/armedbear/abcl/pull/379>
(
prove:plan
1
)
(
prove:isnt
(
handler-case
(
let*
((
parameter
(
jnew-array-from-list
"java.lang.String"
'
(
"tmp"
"passwd"
)))
(
class
(
jclass
"java.nio.file.Path"
))
;;; N.b. Path.of() only exists starting from openjdk11. How to test earlier?
(
method
(
jmethod
"java.nio.file.Path"
"of"
"java.lang.String"
(
jclass-of
parameter
)))
(
result
(
jstatic
method
class
"/chroot/"
parameter
)))
result
)
(
error
(
e
)
(
values
:error
)))
:error
"Invoking a method parameterized on String String[]."
)
(
prove:finalize
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment