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]

Re: Missing Code Attribute with module-export


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();
        }
    }


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