Änderung an StringLitTest.jav -> jetzt return void
This commit is contained in:
parent
68aa427220
commit
1cd1aa7a50
@ -179,8 +179,8 @@ public class Assign extends Expr
|
|||||||
//Bytecode: bipush 20
|
//Bytecode: bipush 20
|
||||||
// istore_1
|
// istore_1
|
||||||
InstructionFactory _factory = new InstructionFactory(cg, cg.getConstantPool());
|
InstructionFactory _factory = new InstructionFactory(cg, cg.getConstantPool());
|
||||||
InstructionList il = this.expr2.genByteCode(cg);//expr2 rechte expr
|
InstructionList il = expr2.genByteCode(cg);//expr2 rechte expr
|
||||||
il.append(_factory.createConstant(expr2.toString()));
|
il.append(_factory.createConstant(expr2));
|
||||||
il.append(_factory.ISTORE_1);
|
il.append(_factory.ISTORE_1);
|
||||||
return il;
|
return il;
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
class StringLitTest{
|
class StringLitTest{
|
||||||
|
|
||||||
|
|
||||||
Object method() { s = ""; }
|
void method() { s = ""; }
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user