Hmmm, restart of REPL have helped. However in case of any farther issues with gen-interface I will post here.
Thanks, bye! On 7 Maj, 16:22, Michael Jaaka <michael.ja...@googlemail.com> wrote: > Thanks it compiles now but proxy is missing something... > > Here is a dede.clj > > (ns dede) > > (gen-interface > :name me.IBar > :methods [[bar [] String]]) > > And here is code run in REPL > > (compile 'dede) > > (import '(me IBar)) > > (let [z (proxy [ IBar ] [] (bar [] "abc" ))] > (.bar z)) > > The output is: > > user=> java.lang.IllegalArgumentException: No matching field found: > bar for clas > s user.proxy$java.lang.Object$IBar$350b1da0 (NO_SOURCE_FILE:0) > user=> > > Btw. looked with Java Decompiler at IBar.class to make sure interface > is ok: > > package me; > > public abstract interface IBar > { > public abstract String bar(); > > } > > and looks good > > On 7 Maj, 15:59, Meikel Brandmeyer <m...@kotka.de> wrote: > > > > > > > Hi, > > > On 7 Mai, 15:37, Michael Jaaka <michael.ja...@googlemail.com> wrote: > > > > (gen-interface > > > :name me.IBar > > > :methods [[bar [String] ]]) > > > You probably want :method [[bar [String] void]]. > > > > (compile 'dede) > > > I'm not sure it is a good idea to hard-wire that here. > > > Sincerely > > Meikel > > > -- > > You received this message because you are subscribed to the Google > > Groups "Clojure" group. > > To post to this group, send email to clojure@googlegroups.com > > Note that posts from new members are moderated - please be patient with > > your first post. > > To unsubscribe from this group, send email to > > clojure+unsubscr...@googlegroups.com > > For more options, visit this group > > athttp://groups.google.com/group/clojure?hl=en > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group > athttp://groups.google.com/group/clojure?hl=en -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en