Storyyeller / Krakatau

Java decompiler, assembler, and disassembler
GNU General Public License v3.0
1.97k stars 220 forks source link

Incorrect casting #67

Closed samczsun closed 8 years ago

samczsun commented 8 years ago
.method public static main : ([Ljava/lang/String;)V 
    .code stack 10 locals 10
        new java/lang/Long
        dup
        ldc 2
        i2l
        invokespecial java/lang/Long <init> (J)V
        .catch java/lang/Throwable from L0 to L1 using L0
L0:
        dup
        getstatic java/lang/System out Ljava/io/PrintStream;
        swap
        invokevirtual java/io/PrintStream println (Ljava/lang/Object;)V
        aconst_null
        athrow
L1:
L2:
        getstatic java/lang/System out Ljava/io/PrintStream;
        ldc 0
        invokevirtual java/io/PrintStream println (I)V
        return
    .end code 
.end method
    public static void main(String[] a)
    {
        Long a0 = new Long(2L);
        while(true)
        {
            try
            {
                System.out.println((Object)a0);
                throw null;
            }
            catch(Throwable a1)
            {
                a0 = (Long)a1;
            }
        }
    }
Storyyeller commented 8 years ago

Should be fixed now.