Re: ClassCastException: class to interface

2010-09-17 Thread JonnyB
> "[L..." is an array of ..., so it looks like you need to create a Java > array to give it. Oh, dear, i could have expected something like that :) But i spent a lot of time, just being clueless. Thank you a lot for your help! and big shout outs to everyone making this language possible! JonnyB

Re: ClassCastException: class to interface

2010-09-16 Thread Michael Wood
On 15 September 2010 05:31, JonnyB wrote: > Thank you very much, for your quick reply! At least, i can be sure > now, that in principle it should be working. > > What i wanna do is wrap the jMonkeyEngine3. > The hello world example (http://jmonkeyengine.org/wiki/doku.php/ > jme3:beginner:hello_sim

Re: ClassCastException: class to interface

2010-09-16 Thread JonnyB
Thank you very much, for your quick reply! At least, i can be sure now, that in principle it should be working. What i wanna do is wrap the jMonkeyEngine3. The hello world example (http://jmonkeyengine.org/wiki/doku.php/ jme3:beginner:hello_simpleapplication) works fine (code below). But when i a

Re: ClassCastException: class to interface

2010-09-14 Thread Alan
This is working fine from Clojure. I don't see how you can get help without providing some information about the code you have that isn't working. user> (definterface Printable (print [])) user.Printable user> (definterface User (use [^user.Printable p])) user.User user> (def p (reify Printable (p

ClassCastException: class to interface

2010-09-14 Thread JonnyB
I try to spare you all the details. I want to call a java function: foo (String str, BarInterface bar) with an argument bar of class Bar that implements BarInterface. The call works fine from Java. But Clojure throws a ClassCastException. I never met an error like this and have no idea where to