On Sat, May 29, 2010 at 05:44, MHOOO <[email protected]> wrote:
> I've got 1.2.0-master running on android froyo with a repl. Froyo
> supports JIT compilation, but whenever I call code which is defining a
> new class (e.g.: "(defn blub [] nil)"), I get an Exception:
> -------------------------------------------------------------
> clojure.core=> (defn blub [] 1)
> java.lang.RuntimeException: java.lang.UnsupportedOperationException:
> can't load this type of class file (NO_SOURCE_FILE:15)
> clojure.core=>
> -------------------------------------------------------------
> And the following error inside the android logs:
> -------------------------------------------------------------
> E/dalvikvm(  522): ERROR: defineClass(0x43e6e188, clojure.core$blub,
> 0x43f83a58, 0, 984, 0x0)
> -------------------------------------------------------------
> Am I doing something wrong/impossible or is there a way to fix this?

Here's my guess: Android's virtual machine uses a different
instruction set than the Sun/Oracle JVM(s). Clojure's compiler would
have to generate Dalvik instructions instead of JVM Bytecode. I expect
that's not a trivial change.

// ben

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to