Changeset 4662


Ignore:
Timestamp:
11/07/03 09:18:38 (18 years ago)
Author:
asimon
Message:

JSTATIC uses javaInstance for automatic type conversion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/lisp/Java.java

    r4648 r4662  
    33 *
    44 * Copyright (C) 2002-2003 Peter Graves
    5  * $Id: Java.java,v 1.17 2003-11-04 22:26:36 asimon Exp $
     5 * $Id: Java.java,v 1.18 2003-11-07 09:18:38 asimon Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    287287                Object[] methodArgs = new Object[args.length-2];
    288288                for (int i = 2; i < args.length; i++) {
    289                     LispObject arg = args[i];
    290                     if (arg instanceof LispString)
    291                         methodArgs[i-2] = ((LispString)arg).getValue();
    292                     else if (arg instanceof LispCharacter)
    293                         methodArgs[i-2] = new Character(((LispCharacter)arg).getValue());
    294                     else if (arg instanceof JavaObject)
    295                         methodArgs[i-2] = ((JavaObject)arg).getObject();
     289      methodArgs[i-2] = args[i].javaInstance();
    296290                }
    297291                Object result = m.invoke(null, methodArgs);
Note: See TracChangeset for help on using the changeset viewer.