Last active
August 29, 2015 14:14
-
-
Save jkubrynski/4da3d50f30704b37ded0 to your computer and use it in GitHub Desktop.
This file contains 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
Field field = Unsafe.class.getDeclaredField("theUnsafe"); | |
field.setAccessible(true); | |
Unsafe unsafe = (Unsafe) field.get(null); | |
Integer test = 999; | |
int strAddress = unsafe.getInt("", 8L); | |
unsafe.putInt(test, 8L, strAddress); | |
System.out.println(test.getClass()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment