forked from JavaTX/JavaCompilerCore
Testcode umgeschrieben
This commit is contained in:
parent
c7bed0fa0e
commit
6dd922a263
@ -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;
|
||||
|
@ -1,7 +1,7 @@
|
||||
class StringLitTest{
|
||||
|
||||
|
||||
void method() { s = ""; }
|
||||
void method() { s; s = ""; }
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user