mirkosertic / Bytecoder

Framework to interpret and transpile JVM bytecode to JavaScript, OpenCL or WebAssembly.

Home Page:https://www.mirkosertic.de/blog/2017/06/compiling-bytecode-to-javascript/

Repository from Github https://github.commirkosertic/BytecoderRepository from Github https://github.commirkosertic/Bytecoder

[Bug] System.arraycopy fails when called with object typed arguments

nbrugger-tgm opened this issue · comments

The method System.arraycopy has a variant where it accepts objects instead of arrays. This method is covered incorrectly and only covers the case where the objects are object arrays, which is not always the case.

Object arr1 = new Object[0];
Object arr2 = new Object[0];
Sysytem.arraycopy(0,arr1,0,arr2,0);

is valid java but not compilable using bytecoder