Ignore:
Timestamp:
10/30/12 12:07:03 (8 years ago)
Author:
Mark Evenson
Message:

Re #259: fix JSS:JLIST-TO-LIST.

This fixes the immediate problem, but leave the ticket open as far as
I can tell the following code fails in ABCL, but succeeds in the
equivalent Java code indicating we need to fix
Java.isApplicableMethod():

(jstatic "asList" "java.util.Arrays" (java:jnew-array (jclass "int") 1))

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abcl/contrib/jss/invoke.lisp

    r13937 r14226  
    534534  "Convert the Java array named by JARRARY into a Lisp list."
    535535  (declare (optimize (speed 3) (safety 0)))
    536   (jlist-to-list
    537    (jstatic "asList" "java.util.Arrays" jarray)))
     536  (loop :for i :from 0 :below (jarray-length jarray)
     537     :collecting (jarray-ref jarray i)))
    538538
    539539;;; Deprecated
Note: See TracChangeset for help on using the changeset viewer.