Hi.

I can't find the answer to this anywhere. (It seems it should be
posted somewhere already ...)

This works:
(. System getProperty "java.version")
  -> "1.6.0_15"

This does not work:
(. (identity System) getProperty "java.version")
  -> java.lang.IllegalArgumentException: No matching method found:
getProperty for class java.lang.Class (NO_SOURCE_FILE:0)

BUT (identity System) returns System as we see here:
(.equals (identity System) System)
  -> true

Why does (. System getProperty "java.version") work when
(. (identity System) getProperty "java.version") does not work, given
that
(identity System) should be the same as System ?

Thanks for any insight here!
Matt

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