1.2.0 permalink Arrow_down_16x16



  • (wall-hack-field class-name field-name obj)
Access to private or protected field.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/contrib/java_utils.clj:213 top

(defn wall-hack-field
  "Access to private or protected field."
  {:deprecated "1.2"}
  [class-name field-name obj]
  (-> class-name (.getDeclaredField (name field-name))
    (doto (.setAccessible true))
    (.get obj)))
Vars in clojure.contrib.java-utils/wall-hack-field: -> defn doto name
Used in 0 other vars

Comments top

No comments for wall-hack-field. Log in to add a comment.