Skip to content

Instantly share code, notes, and snippets.

@sukyology
Created January 17, 2021 02:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sukyology/19d4ce17c2fda3a463a3329c035d719f to your computer and use it in GitHub Desktop.
Save sukyology/19d4ce17c2fda3a463a3329c035d719f to your computer and use it in GitHub Desktop.
public class Object {
@HotSpotIntrinsicCandidate
public Object() {
}
static {
Object.registerNatives();
}
public String toString() {
// 생략
`JvmMockKDispatcher` dispatcher = `JvmMockKDispatcher`.get((long)-8685426189273937011L, (Object)this));
Callable<?> callable;
if (dispatcher == null) {
callable = null;
} else {
callable = dispatcher.handler((Object)this, Object.class.getMethod("toString", new Class[0]), new Object[0]);
}
if (callable != null) {
return (String)callable.call();
} else {
return this.getClass().getName() + "@" + Integer.toHexString(this.hashCode());
}
}
// 이하 생략
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment