Created
May 3, 2017 15:36
-
-
Save rauhs/aa1bdc8f82587bebaa457f89c3ad96e2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
(defn class-loaded? | |
[^String c] | |
(let [m (doto (.getDeclaredMethod ClassLoader "findLoadedClass" (into-array [String])) | |
(.setAccessible true)) | |
cl (ClassLoader/getSystemClassLoader)] | |
(.invoke m cl (into-array Object [c])))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment