#69 Can't pass boolean to java method

closed
nobody
Lisp (13)
5
2003-11-28
2003-11-25
No

Attempting to pass a boolean value from lisp to java causes
an exception. I suspect that a primitive wrapper like
Fixnum.java that extends LispObject will have to be created
for Boolean objects.

A typical stack trace for this error:

org.armedbear.lisp.ConditionThrowable
at
org.armedbear.lisp.LispObject.javaInstance(LispObject.java:
74)
at org.armedbear.lisp.Java$7.execute(Java.java:334)
at org.armedbear.lisp.Primitive.execute(Primitive.java:
79)
at org.armedbear.lisp.Lisp.funcall(Lisp.java:124)
at org.armedbear.lisp.Lisp.eval(Lisp.java:390)
at
org.armedbear.lisp.Primitives$119.execute(Primitives.java:
3078)
at org.armedbear.lisp.Lisp.eval(Lisp.java:379)
at org.armedbear.lisp.Closure.execute(Closure.java:
375)
at org.armedbear.lisp.Lisp.funcall(Lisp.java:121)
at org.armedbear.lisp.Lisp.eval(Lisp.java:390)
at org.armedbear.lisp.Load.loadStream(Load.java:231)
at
org.armedbear.lisp.Load.loadFileFromStream(Load.java:192)
at org.armedbear.lisp.Load.load(Load.java:91)
at org.armedbear.lisp.Load$1.execute(Load.java:307)
at org.armedbear.lisp.Primitive.execute(Primitive.java:
60)
at org.armedbear.lisp.Lisp.funcall(Lisp.java:118)
at org.armedbear.lisp.Lisp.eval(Lisp.java:390)
at org.armedbear.lisp.Lisp$1.execute(Lisp.java:304)
at org.armedbear.lisp.Lisp.funcall(Lisp.java:118)
at org.armedbear.lisp.Lisp.eval(Lisp.java:390)
at
org.armedbear.lisp.Primitives$138.execute(Primitives.java:
3530)
at org.armedbear.lisp.Lisp.eval(Lisp.java:379)
at
org.armedbear.lisp.SpecialOperators._let(SpecialOperators.ja
va:119)
at
org.armedbear.lisp.SpecialOperators.access$0(SpecialOperat
ors.java:26)
at
org.armedbear.lisp.SpecialOperators$4.execute(SpecialOpera
tors.java:76)
at org.armedbear.lisp.Lisp.eval(Lisp.java:379)
at
org.armedbear.lisp.Primitives$117.execute(Primitives.java:
3019)
at org.armedbear.lisp.Lisp.eval(Lisp.java:379)
at
org.armedbear.lisp.Primitives$119.execute(Primitives.java:
3078)
at org.armedbear.lisp.Lisp.eval(Lisp.java:379)
at
org.armedbear.lisp.Primitives$119.execute(Primitives.java:
3078)
at org.armedbear.lisp.Lisp.eval(Lisp.java:379)
at org.armedbear.lisp.Closure.execute(Closure.java:
313)
at org.armedbear.lisp.Lisp.funcall(Lisp.java:115)
at org.armedbear.lisp.Lisp.eval(Lisp.java:390)
at
org.armedbear.lisp.Primitives$64.execute(Primitives.java:
1687)
at org.armedbear.lisp.Lisp.eval(Lisp.java:379)
at
org.armedbear.lisp.Primitives$122.execute(Primitives.java:
3162)
at org.armedbear.lisp.Lisp.eval(Lisp.java:379)
at
org.armedbear.lisp.Primitives$117.execute(Primitives.java:
3019)
at org.armedbear.lisp.Lisp.eval(Lisp.java:379)
at
org.armedbear.lisp.Primitives$119.execute(Primitives.java:
3078)
at org.armedbear.lisp.Lisp.eval(Lisp.java:379)
at
org.armedbear.lisp.Primitives$119.execute(Primitives.java:
3078)
at org.armedbear.lisp.Lisp.eval(Lisp.java:379)
at org.armedbear.lisp.Closure.execute(Closure.java:
313)
at org.armedbear.lisp.Lisp.funcall0(Lisp.java:152)
at org.armedbear.lisp.Interpreter.run(Interpreter.java:
163)
at org.armedbear.lisp.Main.main(Main.java:30)

Discussion

  • Peter Graves

    Peter Graves - 2003-11-28
    • status: open --> closed
     
  • Peter Graves

    Peter Graves - 2003-11-28

    Logged In: YES
    user_id=558172

    Use MAKE-IMMEDIATE-OBJECT for this.

     

Log in to post a comment.