From d19124a4de9362a09d16edce7778dd925a415520 Mon Sep 17 00:00:00 2001 From: Michael Uhl Date: Tue, 17 Sep 2019 10:26:32 +0200 Subject: [PATCH] Compile fix. --- .../src/typinferenzplugin/Typinferenz.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/JavaCompilerPlugin/bundles/JavaCompilerPlugin.Plugin/src/typinferenzplugin/Typinferenz.java b/JavaCompilerPlugin/bundles/JavaCompilerPlugin.Plugin/src/typinferenzplugin/Typinferenz.java index 2f80972..d6b5025 100644 --- a/JavaCompilerPlugin/bundles/JavaCompilerPlugin.Plugin/src/typinferenzplugin/Typinferenz.java +++ b/JavaCompilerPlugin/bundles/JavaCompilerPlugin.Plugin/src/typinferenzplugin/Typinferenz.java @@ -22,9 +22,8 @@ import org.eclipse.core.runtime.ILog; import org.eclipse.core.runtime.Status; import de.dhbwstuttgart.bytecode.BytecodeGen; -import de.dhbwstuttgart.bytecode.Exception.BytecodeGeneratorError; import de.dhbwstuttgart.bytecode.descriptor.TypeToDescriptor; -import de.dhbwstuttgart.bytecode.simplifyRes.GenericGenratorResultForSourceFile; +import de.dhbwstuttgart.bytecode.genericsGeneratorTypes.GenericGenratorResultForSourceFile; import de.dhbwstuttgart.core.JavaTXCompiler; import de.dhbwstuttgart.exceptions.TypeinferenceException; import de.dhbwstuttgart.syntaxtree.SourceFile; @@ -148,6 +147,8 @@ public class Typinferenz { public synchronized HashMap getBytecode(SourceFile sf, Collection resultSets, String path) { try { HashMap classFiles = new HashMap<>(); + + List genericResults = compiler.getGeneratedGenericResultsForAllSourceFiles(new ArrayList<>(resultSets)); BytecodeGen bytecodeGen = new BytecodeGen(classFiles,resultSets, genericResults, sf,path); bytecodeGen.visit(sf);