-
Bug
-
Resolution: Fixed
-
P3
-
asm_tools_5.0, asm_tools_6.0, asm_tools_7.0
-
None
-
b06
jdis -sl CAST.class
prints:
public static Method run:"([Ljava/lang/String;Ljava/io/PrintStream;)I"
stack 3 locals 3
{
// null
new class java/lang/Integer;
dup;
iconst_1;
invokespecial Method java/lang/Integer."<init>":"(I)V";
astore_2;
// null
iconst_0;
ireturn;
}
expected:
public static Method run:"([Ljava/lang/String;Ljava/io/PrintStream;)I"
stack 3 locals 3
{
// Number z = (@Advanced(s = "test", i = 321) Integer)new Integer(1);
new class java/lang/Integer;
dup;
iconst_1;
invokespecial Method java/lang/Integer."<init>":"(I)V";
astore_2;
// return 0/*STATUS_PASSED*/;
iconst_0;
ireturn;
}
prints:
public static Method run:"([Ljava/lang/String;Ljava/io/PrintStream;)I"
stack 3 locals 3
{
// null
new class java/lang/Integer;
dup;
iconst_1;
invokespecial Method java/lang/Integer."<init>":"(I)V";
astore_2;
// null
iconst_0;
ireturn;
}
expected:
public static Method run:"([Ljava/lang/String;Ljava/io/PrintStream;)I"
stack 3 locals 3
{
// Number z = (@Advanced(s = "test", i = 321) Integer)new Integer(1);
new class java/lang/Integer;
dup;
iconst_1;
invokespecial Method java/lang/Integer."<init>":"(I)V";
astore_2;
// return 0/*STATUS_PASSED*/;
iconst_0;
ireturn;
}