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] |
Hi,
kawa failed to compile throw exception statement inside define-simple-class:
bash-2.05a$ cat Test.scm (define-simple-class Test1 () ((test) :: <String> (primitive-throw (make <java.lang.Exception> '|test|)) ) ) bash-2.05a$ kawa -C Test.scm (compiling Test.scm) java.lang.ArrayIndexOutOfBoundsException: -1 at gnu.bytecode.CodeAttr.topType(CodeAttr.java:217)
A more general solution would check things like: (func (primitive-throw ...)) This currently causes a compiler exception; instead we should probably emit at least a warning. -- --Per Bothner per at bothner dot com http://per.bothner.com/
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |