a.b(new C() {
@Handler
public void d() {
System.out.println("hello world");
}
});
I tried to translated it to clojure:
(.b a (proxy [C] []
(^{Handler {}}
d [] (println "hello world"))))
But unfortunately it doesn't work.
Is this correct? How should I add java annotation to a method?