Skip to content

Instantly share code, notes, and snippets.

@Maccimo
Last active April 22, 2021 10:33
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 Maccimo/9763417764aa53576c39b73d14a8fc85 to your computer and use it in GitHub Desktop.
Save Maccimo/9763417764aa53576c39b73d14a8fc85 to your computer and use it in GitHub Desktop.
LdcConDyTwice.jasm
super public class LdcConDyTwice
version 55:0
{
public Method "<init>":"(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/Class;)V"
stack 1 locals 4
{
aload_0;
invokespecial Method java/lang/Object."<init>":"()V";
return;
}
public static varargs Method main:"([Ljava/lang/String;)V"
stack 2 locals 1
{
ldc Dynamic
REF_newInvokeSpecial
:LdcConDyTwice."<init>"
:"(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/Class;)V"
:LdcConDyTwice
:"LLdcConDyTwice;";
pop;
ldc Dynamic
REF_newInvokeSpecial
:LdcConDyTwice."<init>"
:"(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/Class;)V"
:LdcConDyTwice
:"LLdcConDyTwice;";
pop;
getstatic Field java/lang/System.out:"Ljava/io/PrintStream;";
ldc String "Executed normally.";
invokevirtual Method java/io/PrintStream.println:"(Ljava/lang/String;)V";
return;
}
static Method "<clinit>":"()V"
stack 2 locals 0
{
return;
}
} // end Class LdcConDyTwice
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment