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]

Compilation problem


Hi,

I have run into a compilation problem. I'm using Kawa 1.7.90 (compiled from
the CVS sources on February 23, 2004). 

It seems that Kawa creates multiples instances of some array types when
compiling several source files at once. Consider the following files:

-------------------------- MyInterface.java
public interface MyInterface {
    void method(String[] arg);
} 

-------------------------- module1.scm
(module-name <module1>)

(define-simple-class <A> (<Object>)
  ((foo (arg :: <String[]>)) :: <void>
   #!void))

-------------------------- module2.scm
(module-name <module2>)

(define-simple-class <B> (<Object> <MyInterface>)
  ((method (arg :: <java.lang.String[]>)) :: <void>
   #!void))

---------------------------

If I compile those files, I get:

  > javac MyInterface.java
  > kawa -C module1.scm module2.scm
  (compiling module1.scm)
  (compiling module2.scm)
  module2.scm:3:2: missing implementation for
MyInterface.method(java.lang.String[])void mname:method

But if I compile each file separately, everything works fine. Also, if I
replace String[] by String, everything works fine too.

This is a problem since, in my build process at work, I need to compile all
files at once.

[BTW I can't test with the latest CVS version since it does not build.]

Dominique Boucher
Lead Developer
Nü Écho Inc
www.nuecho.com
 



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