Absent Code attribute in r7rs library
Per Bothner
per@bothner.com
Sat Nov 29 01:28:00 GMT 2014
On 11/26/2014 05:17 PM, Seth Alves wrote:
>
> Once more with attachment.
>
> -seth
>
> On 11/26/2014 05:16 PM, Seth Alves wrote:
>> srfi-42 is a rich source of horror.
>>
>> $ ./kawa-absent-code.scm
>> Exception in thread "main" java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file foo
>> at java.lang.ClassLoader.defineClass1(Native Method)
>> at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
>> at java.lang.ClassLoader.defineClass(ClassLoader.java:643)
>> at gnu.bytecode.ArrayClassLoader.loadClass(ArrayClassLoader.java:125)
>> at gnu.expr.ModuleExp.evalToClass(ModuleExp.java:135)
>> at gnu.expr.ModuleExp.evalToClass(ModuleExp.java:157)
>> at gnu.expr.ModuleExp.evalModule1(ModuleExp.java:259)
>> at kawa.Shell.compileSource(Shell.java:560)
>> at kawa.Shell.runFile(Shell.java:528)
>> at kawa.Shell.runFileOrClass(Shell.java:447)
>> at kawa.repl.main(repl.java:881)
>>
>> This time, it *does* need to be inside an r7rs library for there to be a problem. Again, let me know if more trimming would help.
I checked in a patch for this.
As mentioned, the problem was handling symbols with colons.
--
--Per Bothner
per@bothner.com http://per.bothner.com/
More information about the Kawa
mailing list