From: Alcides Flores Pineda <alcides.fp@gmail.com>
To: Kawa Mailing List <kawa@sourceware.org>
Subject: define-alias NOT working
Date: Sat, 04 Apr 2015 22:46:00 -0000 [thread overview]
Message-ID: <552069DD.5010409@gmail.com> (raw)
Hello Everybody:
I'm finally migrating to Kawa 2.0 and just found that this code:
(define-alias showMsgDlg javax.swing.JOptionPane:showMessageDialog)
(showMsgDlg #!null "Hello everybody from Kawa!")
That used to work pretty well in Kawa 1.14, is now broken..
$ java -cp kawa-2.0.1.jar kawa.repl
#|kawa:1|# (define-alias showMsgDlg
javax.swing.JOptionPane:showMessageDialog)
java.lang.NullPointerException
at kawa.standard.location.rewriteApply(location.java:96)
at kawa.standard.location.rewrite(location.java:64)
at kawa.standard.define_alias.rewriteForm(define_alias.java:86)
at kawa.lang.Translator.apply_rewrite(Translator.java:175)
at kawa.lang.Translator.rewrite_pair(Translator.java:353)
at kawa.lang.Translator.rewrite_with_position(Translator.java:1355)
at kawa.lang.Translator.rewrite(Translator.java:735)
at kawa.lang.Translator.rewrite(Translator.java:715)
at kawa.lang.Translator.rewriteInBody(Translator.java:668)
at kawa.lang.Translator.rewriteBody(Translator.java:1663)
at kawa.lang.Translator.resolveModule(Translator.java:1844)
at gnu.kawa.lispexpr.LispLanguage.resolve(LispLanguage.java:141)
at gnu.expr.Compilation.process(Compilation.java:1973)
at gnu.expr.ModuleExp.evalModule1(ModuleExp.java:240)
at gnu.expr.ModuleExp.evalModule(ModuleExp.java:214)
at kawa.Shell.run(Shell.java:291)
at kawa.Shell.run(Shell.java:203)
at kawa.Shell.run(Shell.java:184)
at kawa.repl.main(repl.java:903)
$ java -version
java version "1.7.0_75"
OpenJDK Runtime Environment (IcedTea 2.5.4) (7u75-2.5.4-1~deb7u1)
OpenJDK Server VM (build 24.75-b04, mixed mode)
I'm getting this error consistently in compile mode and from the REPL,
and with JDK8(Oracle) and JDK7(OpenJDK), hence my example project
(https://github.com/alcidesfp/swing-kawa) cannot be compiled with Kawa 2.0
Any workaround or suggestion will be highly appreciated.
Greetings.
--
Alcides Flores Pineda.
next reply other threads:[~2015-04-04 22:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-04 22:46 Alcides Flores Pineda [this message]
2015-04-05 2:16 ` Per Bothner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=552069DD.5010409@gmail.com \
--to=alcides.fp@gmail.com \
--cc=kawa@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).