JavaFX Example
Per Bothner
per@bothner.com
Wed Nov 6 20:06:00 GMT 2013
On 11/06/2013 11:39 AM, Matthieu Vachon wrote:
> Adding `(module-static #t)` to module header fix the exception, but
> then, the application does not pop up, strange
When I compile your example I get:
/home/bothner/tmp/hello-world.scm:10:9: warning - no use of start
/home/bothner/tmp/hello-world.scm:24:9: warning - no use of create-button
This because when you compile with main, then functions are not implicitly
exported. This allows better optimization. In this case start is
optimized away, which is why you get the AbstractMethodError.
I think this should be viewed as a Kawa bug, when the function overrides an
inherited method, it should be viewed as being "used".
(module-static #t) would make the methods static, which would not work.
Unsure why you don't get the AbstractMethodError.
I'm having some configuration issues; more later. You could
try removing the
(module-compile-options main: #t)
or adding
(module-export start create-button)
--
--Per Bothner
per@bothner.com http://per.bothner.com/
More information about the Kawa
mailing list