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) {
|
public InstructionList genByteCode(ClassGen cg) {
|
||||||
InstructionFactory _factory = new InstructionFactory(cg, cg.getConstantPool());
|
InstructionFactory _factory = new InstructionFactory(cg, cg.getConstantPool());
|
||||||
InstructionList il = new InstructionList();
|
InstructionList il = new InstructionList();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
il.append(_factory.ASTORE_1, _factory.createNew(string));
|
il.append(_factory.ASTORE_1, _factory.createNew(string));
|
||||||
|
|
||||||
return il;
|
return il;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
class StringLitTest{
|
class StringLitTest{
|
||||||
|
|
||||||
|
|
||||||
void method() { s = ""; }
|
void method() { s; s = ""; }
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user