This is the mail archive of the kawa@sources.redhat.com mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

bug/patch for kawa/standard/object.java


Hi,

object with methods cannot currently be declared with define-syntax mechanism. You get "missing method name"
error message if you try to.


Below is the patch which (hopefully) cures this problem.

Regards,
Vladimir

Index: object.java
===================================================================
RCS file: /cvs/kawa/kawa/kawa/standard/object.java,v
retrieving revision 1.13
diff -r1.13 object.java
160,162c160,164
<         if (! (mpair.car instanceof String))
<           return tr.syntaxError("missing method name");
<         String mname = (String) mpair.car;
---
>         Object name = mpair.car;
>         if (! ((name instanceof String) ||
>            (name instanceof gnu.mapping.Symbol)))
>           return tr.syntaxError("invalid method name: " + mpair);
>         String mname = mpair.car.toString();



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]