Testcode umgeschrieben

This commit is contained in:
Fikus, Evelyn (WWI2012D) 2015-06-25 14:29:16 +02:00
parent c7bed0fa0e
commit 6dd922a263
2 changed files with 4 additions and 2 deletions

View File

@ -110,7 +110,9 @@ public class StringLiteral extends Literal
public InstructionList genByteCode(ClassGen cg) {
InstructionFactory _factory = new InstructionFactory(cg, cg.getConstantPool());
InstructionList il = new InstructionList();
il.append(_factory.ASTORE_1, _factory.createNew(string));
return il;

View File

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