I don't seem to be able to get rid of reflection warnings on
definterface/deftype field/method calls...

Clojure 1.2.0-master-SNAPSHOT
user=> (set! *warn-on-reflection* true)
true
(import '(java.io File))
java.io.File
(definterface IFile (^String getNm[]))
(deftype TFile [^File file] IFile (^String getNm[_] (.getName file)))
user.IFile
user=> user.TFile

user=> (def tf (TFile. (java.io.File. "d/tst.clf")))
#'user/tf
user=> (.getNm tf)
Reflection warning, NO_SOURCE_PATH:9 - reference to field getNm can't
be resolved.
"tst.clf"

(.file tf)
Reflection warning, NO_SOURCE_PATH:8 - reference to field file can't
be resolved.
#<File d/tst.clf>

I've tried every permutation of type hinting, but cannot get rid of
those warnings.

Any ideas?

-Thanks, Adrian.

-- 
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

Reply via email to