qdrzwd / dexmaker

Automatically exported from code.google.com/p/dexmaker
0 stars 0 forks source link

Code.monitorExit actually generates monitorEnter instruction instead #41

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The following code is wrong in the Code class:

 public void monitorExit(Local<?> monitor) {
        addInstruction(new ThrowingInsn(Rops.MONITOR_ENTER, sourcePosition,
                RegisterSpecList.make(monitor.spec()), catches));
    }

"monitorExit" should add Rops.MONITOR_EXIT instruction.

Original issue reported on code.google.com by kondakov...@gmail.com on 2 Dec 2014 at 8:28