Storyyeller / Krakatau

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

Q: Assembler: Calls where method type is a primitive type ? #171

Closed lemonsqueeze closed 4 years ago

lemonsqueeze commented 4 years ago

Hi,

Question about an unusual output i'm getting with the disassembler: Playing around with this class: h.class.zip I'm getting

...
L10:    getfield Field androidx/d/h c [I
L13:    invokevirtual Method [I clone ()Ljava/lang/Object;
L16:    checkcast [I

Don't think i've come across this before, What is this call where the method class is a primitive type ? Looks like an int.clone() call but you can't do that in java, can you ?

Storyyeller commented 4 years ago

That's calling clone on an int[], that is an array of integers.