Created
April 7, 2010 17:01
-
-
Save ndimiduk/359131 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns com.foo.Foo) | |
(gen-interface | |
:name com.foo.IFoo | |
:methods [[foo [String] #=(java.lang.Class/forName "[Ljava.lang.String;")]]) | |
(gen-class | |
:name com.foo.Foo | |
:implements [com.foo.IFoo]) | |
(defn -foo | |
[#^String arg] | |
(into-array [(str "foo!" arg)])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
gen-interface uses different type-resolution code than gen-class. This is necessary to use a native array in an interface method signature.