This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: Exception when calling fn. using for-each in Java
Emmanuel Castro <castro@lirmm.fr> writes:
> I think you're right when you say that there is an automatic initialisation
> when called from Kawa. When you load or require the class test, Kawa
> execute the method test.run.
Not if the test module is a "static" module, as in this case.
In that cae, there is no "run" method. Instead, all the class
initialization happens automatically in the class initializer.
Unfortunately, this does not cause the global Scheme environment to get
initialized. This should probably be fixed, but doing so might need
careful thought. Until then, call Scheme.registerEnvironment().
--
--Per Bothner
per@bothner.com http://www.bothner.com/~per/