Problem on dynamically call gen-class'ed method

2017-12-20 Thread Hiroshi Sakurai
Hi, I'm having trouble calling method of gen-class'ed classes on Android. On Android, it is recommended to compile against the latest android.jar. When you run an app on real devices, some classes and methods are missing because runtime android.jar is usually older. Say, the latest Activity.java

Re: JVM hanging after -main

2017-12-20 Thread Eric Schoen
Ha! Almost nine years later, a Google search surfaced this thread in response to "java jvm hang exit DestroyJavaVM thread." I have a Clojure based web crawler built around pegasus (and thus, both threadpool agents and clojure core async agents) that uses a command line interface to crawl in a

Re: Using catch/throw inside a macro gives RuntimeException

2017-12-20 Thread Alex Miller
`catch` is not a function or macro, it's special syntax only understood in the context of the special form `try`. You can't do this without writing your own form of try (see try+ in slingshot for an example of that). On Wednesday, December 20, 2017 at 9

Using catch/throw inside a macro gives RuntimeException

2017-12-20 Thread crispin
How do I use catch and throw in a macro? Here's a summary in the repl of what I have tried: user=> (defmacro catch2 [class bind-var & body] `(catch ~class ~bind-var ~@body)) #'user/catch2 user=> (macroexpand-1 '(catch2 Exception e nil)) (catch Exception e nil) user=> (try nil (catch2 Exception e

Re: Understanding remove-ns and require

2017-12-20 Thread Mark Melling
Thanks Andy, that was helpful. In my example foo.bar is in *loaded-libs* I removed it by calling (clojure.tools.namespace.reload/remove-lib 'foo.bar) Interestingly when I then did a require I get a different error, the file is loaded, but the namespace not found. (require '[foo.bar :as bar]) =>