This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: Missing Code Attribute with module-export
- From: Chris Dean <Chris dot Dean at sokitomi dot com>
- To: Per Bothner <per at bothner dot com>
- Cc: Kawa List <kawa at sources dot redhat dot com>
- Date: Tue, 01 Apr 2003 13:42:06 -0800
- Subject: Re: Missing Code Attribute with module-export
- References: <17061.1049155784@mercedsystems.com> <3E89F371.3060106@bothner.com>
Hmm, that changes the problem but doesn't quite fix it. Now I get this
error when trying to use the class Bar:
Exception in thread "main" java.lang.VerifyError: (class: Bar, method:
myMethod signature: ()Lgnu/lists/PairWithPosition;) Falling off the
end of the code at Foo2.main(Foo2.java:15)
jad gives me this error:
// JavaClassFileOutputException: No instruction in ipc_array for 3
> However, we would also like a non-exported class to not be PUBLIC.
I'd export the class if I knew how! ;-).
Regards,
Chris Dean
Foo.scm:
(module-export f)
(define-simple-class <Bar> ()
((my-method)
'(result of my method)))
(define (f)
'(some function f))
and Foo2.java:
public class Foo2 {
static public void main( String args[] ) {
Bar b = new Bar();
}
}