Opened 8 years ago

Closed 8 years ago

#247 closed defect (fixed)

CFFI: $Proxy3 is not assignable to com.sun.jna.Pointer

Reported by: Anton Vodonosov Owned by: Mark Evenson
Priority: major Milestone: 1.1.0
Component: libraries Version: 1.1.0-dev
Keywords: cffi jna Cc:
Parent Tickets:

Description

Armed Bear Common Lisp 1.1.0-dev-svn-14181
Java 1.6.0_24 Sun Microsystems Inc.

Remove ~/.cache/common-lisp/ to workaround ticket #246.

(java:add-to-classpath "my-jna/jna.jar")
(provide 'jna)
(ql:quickload :drakma) ;; depends on CL+SSL
(drakma:http-request "https://google.com/")

WARNING: JAVA:MAKE-IMMEDIATE-OBJECT is deprecated.
WARNING: JAVA:MAKE-IMMEDIATE-OBJECT is deprecated.
WARNING: JAVA:MAKE-IMMEDIATE-OBJECT is deprecated.
WARNING: JAVA:MAKE-IMMEDIATE-OBJECT is deprecated.
#<THREAD "interpreter" {137E21A}>: Debugger invoked on condition of type TYPE-ERROR
  $Proxy3 is not assignable to com.sun.jna.Pointer
Restarts:
  0: TOP-LEVEL Return to top level.
[1] CL-USER(5):

Change History (6)

comment:1 Changed 8 years ago by Anton Vodonosov

Version: 1.1.0-dev

comment:2 Changed 8 years ago by Mark Evenson

Keywords: jna added
Status: newassigned

comment:3 Changed 8 years ago by Mark Evenson

Milestone: 1.1.0

comment:4 Changed 8 years ago by Mark Evenson

Resolution: fixed
Status: assignedclosed

This has been resolved [in the latest patches to CFFI for ABCL][1]

[1]: http://slack.net/~evenson/abcl/cffi/cffi-abcl-20121021a.patch

A [version of this patch has been committed to the master CFFI repository][2], so this change will make it into the Quicklisp distributed version when there is a new release of CFFI.

[2]: https://github.com/cffi/cffi/commit/bd316af736a0bd13e81e4f2f53a24709eaf72f6d

comment:5 Changed 8 years ago by Anton Vodonosov

Resolution: fixed
Status: closedreopened

Still fails in 1.2.0-dev-svn-14409:

$ java -jar ./lisps/abcl/dist/abcl.jar
Armed Bear Common Lisp 1.2.0-dev-svn-14409
[...]

CL-USER(2): (ql:quickload:drakma)
CL-USER(2): (drakma:http-request "https://google.com/")
WARNING: JAVA:MAKE-IMMEDIATE-OBJECT is deprecated.
WARNING: JAVA:MAKE-IMMEDIATE-OBJECT is deprecated.
WARNING: JAVA:MAKE-IMMEDIATE-OBJECT is deprecated.
WARNING: JAVA:MAKE-IMMEDIATE-OBJECT is deprecated.
#<THREAD "interpreter" {B8E60A}>: Debugger invoked on condition of type TYPE-ERROR
  $Proxy5 is not assignable to com.sun.jna.Pointer
Restarts:
  0: TOP-LEVEL Return to top level.
[1] CL-USER(3):

comment:6 Changed 8 years ago by Anton Vodonosov

Resolution: fixed
Status: reopenedclosed

Sorry, I am testing on quicklisp 2013-01-28 and see that CFFI hasn't been updated with required fixes yet.

Note: See TracTickets for help on using tickets.