Storyyeller / Krakatau

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

AssertionError in javamethod #73

Closed samczsun closed 8 years ago

samczsun commented 8 years ago
.method public static num : ()I 
    .code stack 10 locals 10 
L0:     iconst_0 
L1:     ireturn 
L2:     
    .end code 
.end method 

.method public static main : ([Ljava/lang/String;)V 
    .code stack 10 locals 10 
        invokestatic Method proof num ()I
        ifeq L1j
        return
L1j:
        invokestatic Method proof num ()I
        ifne L1j
        return
    .end code 
.end method 

EDIT 1: Simplified it quite a bit

samczsun commented 8 years ago

Here's another one. May be related

.method public static main : ([Ljava/lang/String;)V 
    .code stack 10 locals 10 
        invokestatic Method proof num ()I
L0:
        dup
        tableswitch 0
            L0
            default: L4
L4:
        return
    .end code 
.end method