bug-kawa
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-kawa] [bugs #11427] <java.lang.Integer> in the interpreter gives Cl


From: Dean Ferreyra
Subject: [Bug-kawa] [bugs #11427] <java.lang.Integer> in the interpreter gives ClassCastException
Date: Tue, 28 Dec 2004 21:58:23 -0500
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

This mail is an automated notification from the bugs tracker
 of the project: Kawa.




/**************************************************************************/
[bugs #11427] Full Item Snapshot:

URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=11427>
Project: Kawa
Submitted by: Dean Ferreyra
On: Wed 12/29/2004 at 02:46

Category:  Scheme language
Severity:  5 - Average
Item Group:  Run-time exception
Resolution:  None
Privacy:  Public
Assigned to:  None
Status:  Open


Summary:  <java.lang.Integer> in the interpreter gives ClassCastException

Original Submission:  This:

  (define seven (make <java.lang.Integer> 7))
  (- (as <int> seven) 3)

does not work from the interpreter, giving this on a build from a CVS pull I 
did today:

  thallium% java -classpath ~/share/java/kawa-1.7.91.jar kawa.repl
  #|kawa:1|# (define seven (make <java.lang.Integer> 7))(- (as <int> seven) 3)
  Invalid parameter, was: null
  java.lang.ClassCastException
          at gnu.kawa.functions.AddOp.apply2(AddOp.java:32)
          at gnu.kawa.functions.AddOp.applyN(AddOp.java:73)
          at gnu.kawa.functions.AddOp.applyN(AddOp.java:88)
          at gnu.mapping.Procedure.apply(Procedure.java:123)
          at gnu.mapping.Procedure.apply(Procedure.java:115)
          at gnu.mapping.CallContext.runUntilDone(CallContext.java:240)
          at gnu.expr.ModuleExp.evalModule(ModuleExp.java:212)
          at kawa.Shell.run(Shell.java:231)
          at kawa.Shell.run(Shell.java:177)
          at kawa.Shell.run(Shell.java:164)
          at kawa.Shell.run(Shell.java:151)
          at kawa.repl.main(repl.java:672)

Compiling the expressions and running the resulting code works fine and gives 
the right result.












For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=11427>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/







reply via email to

[Prev in Thread] Current Thread [Next in Thread]