Changeset 5250


Ignore:
Timestamp:
12/24/03 15:58:53 (18 years ago)
Author:
asimon
Message:

invoke returns null for void methods

File:
1 edited

Legend:

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

    r5247 r5250  
    33 *
    44 * Copyright (C) 2002-2003 Peter Graves
    5  * $Id: JProxy.java,v 1.1 2003-12-24 15:02:56 asimon Exp $
     5 * $Id: JProxy.java,v 1.2 2003-12-24 15:58:53 asimon Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    6262
    6363    public Object invoke(Object proxy, Method method, Object[] args) {
    64 
    6564        String methodName = method.getName();
    6665
     
    8382                    lispArgs[i] = new JavaObject(args[i]);
    8483                try {
    85                     return (f.execute(lispArgs).javaInstance());
     84                    LispObject result = f.execute(lispArgs);
     85                    return (method.getReturnType() == void.class ? null : result.javaInstance());
    8686                }
    8787                catch (ConditionThrowable t) {
Note: See TracChangeset for help on using the changeset viewer.