fc = Foo.class.getDeclaredField("c");
} catch (NoSuchFieldException e) {
System.out.println(e);
return;
}
long offset = unsafe.objectFieldOffset(fc);
System.out.println(unsafe.getObject(f,offset));
unsafe.putObject(f,offset, "hello Unsafe");
System.out.println(unsafe.getObject(f,offset));
System.out.println(((Foo)f).c);
String newC = "hello again Unsafe";