Skip to content

Instantly share code, notes, and snippets.

@matlockx
Created April 22, 2015 16:56
Show Gist options
  • Save matlockx/29e031c92ddde1baa56a to your computer and use it in GitHub Desktop.
Save matlockx/29e031c92ddde1baa56a to your computer and use it in GitHub Desktop.
method hash
"sssabla".getClass.getDeclaredMethods.toList.foreach{m => val rootMethod = m.getClass.getDeclaredMethod("getRoot");rootMethod.setAccessible(true);println(m.setAccessible(true) + " " + System.identityHashCode(m) + " root: " + System.identityHashCode(rootMethod.invoke(m)) + " " + m)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment