From 8da8eb7d288c76c9066d02760d250afe392e5378 Mon Sep 17 00:00:00 2001 From: "Fikus, Evelyn (WWI2012D)" Date: Mon, 22 Jun 2015 16:22:12 +0200 Subject: [PATCH] Neuer Versuch StringLiteral --- .../syntaxtree/statement/StringLiteral.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/de/dhbwstuttgart/syntaxtree/statement/StringLiteral.java b/src/de/dhbwstuttgart/syntaxtree/statement/StringLiteral.java index 4fee0532..96d0ef75 100755 --- a/src/de/dhbwstuttgart/syntaxtree/statement/StringLiteral.java +++ b/src/de/dhbwstuttgart/syntaxtree/statement/StringLiteral.java @@ -2,6 +2,7 @@ package de.dhbwstuttgart.syntaxtree.statement; import de.dhbwstuttgart.typeinference.Menge; + // ino.end // ino.module.StringLiteral.8653.import import java.util.Hashtable; @@ -107,15 +108,15 @@ public class StringLiteral extends Literal @Override public InstructionList genByteCode(ClassGen cg) { - InstructionList il = new InstructionList(); - InstructionFactory _factory = new InstructionFactory(cg, cg.getConstantPool()); - + InstructionList il = new InstructionList(); + il.append(_factory.ASTORE_1, _factory.createNew(string)); - - + return il; } + + } // ino.end