Skip to content
A clojure library for bypassing java protected fields
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/wall Fix typo'd special keyword to match docstring in mirror May 17, 2013 Bump the version in the readme May 25, 2013
project.clj Bump the version May 25, 2013


A library for bypassing private & protect fields & methods on java classes. Extracted from old contrib. Derived from work by hiredman.


[clj-wallhack "1.0.1"]


Getting a field

(wall.hack/field :field obj)

This returns the private/protected field named "field", declared in class "" on instance obj. obj is an instanceof (or descendant of) class field can be anything named (a string, symbol or keyword).

Calling a method

(wall.hack/method :aMethodCall [Integer Double] obj 3 5.0)

This calls the private/protected method "aMethodCall" on obj. The method is declared in class obj is an instance of, or descendant of class the call takes a seq of classes that correspond to the method's signature, and an equal number of &rest arguments.

Pass nil instead of obj for static method calls.

You can’t perform that action at this time.