Änderung an StringLitTest.jav -> jetzt return void

This commit is contained in:
Fütterling, Franziska (WWI2012D) 2015-06-22 16:40:30 +02:00
parent 68aa427220
commit 1cd1aa7a50
8 changed files with 73 additions and 73 deletions

View File

@ -179,8 +179,8 @@ public class Assign extends Expr
//Bytecode: bipush 20
// istore_1
InstructionFactory _factory = new InstructionFactory(cg, cg.getConstantPool());
InstructionList il = this.expr2.genByteCode(cg);//expr2 rechte expr
il.append(_factory.createConstant(expr2.toString()));
InstructionList il = expr2.genByteCode(cg);//expr2 rechte expr
il.append(_factory.createConstant(expr2));
il.append(_factory.ISTORE_1);
return il;
}

View File

@ -1,7 +1,7 @@
class StringLitTest{
Object method() { s = ""; }
void method() { s = ""; }
}