mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
Fixed issue with the instruction copier. Now it builds ok with synchronized instruction. Getting an error at runtime...
This commit is contained in:
parent
d37da2b078
commit
21468ef419
|
@ -63,7 +63,7 @@ public class Renderer implements ExprVisitor, StatementVisitor, RenderingContext
|
|||
Object.class, "monitorEnter", Object.class, void.class);
|
||||
|
||||
writer.appendMethodBody(monitorEnterRef).append("(");
|
||||
statement.acceptVisitor(this);
|
||||
statement.getObjectRef().acceptVisitor(this);
|
||||
writer.append(");").softNewLine();
|
||||
|
||||
} catch (IOException ex){
|
||||
|
@ -80,7 +80,7 @@ public class Renderer implements ExprVisitor, StatementVisitor, RenderingContext
|
|||
Object.class, "monitorExit", Object.class, void.class);
|
||||
|
||||
writer.appendMethodBody(monitorExitRef).append("(");
|
||||
statement.acceptVisitor(this);
|
||||
statement.getObjectRef().acceptVisitor(this);
|
||||
writer.append(");").softNewLine();
|
||||
} catch (IOException ex){
|
||||
throw new RenderingException("IO error occured", ex);
|
||||
|
|
|
@ -204,11 +204,11 @@ class InstructionReadVisitor implements InstructionVisitor {
|
|||
|
||||
@Override
|
||||
public void visit(MonitorEnterInstruction insn) {
|
||||
|
||||
reader.monitorEnter(insn.getObjectRef());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void visit(MonitorExitInstruction insn) {
|
||||
|
||||
reader.monitorExit(insn.getObjectRef());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user