From 8a5dbb28acc872b779d2bb7d3b42e18a492f0c73 Mon Sep 17 00:00:00 2001 From: Fayez Abu Alia Date: Mon, 25 Feb 2019 19:20:11 +0100 Subject: [PATCH] Bug gefixt: genericList als Paramater uebergeben --- .../de/dhbwstuttgart/bytecode/BytecodeGenMethod.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/dhbwstuttgart/bytecode/BytecodeGenMethod.java b/src/main/java/de/dhbwstuttgart/bytecode/BytecodeGenMethod.java index dd3d27ed..b1ea614f 100644 --- a/src/main/java/de/dhbwstuttgart/bytecode/BytecodeGenMethod.java +++ b/src/main/java/de/dhbwstuttgart/bytecode/BytecodeGenMethod.java @@ -140,7 +140,8 @@ public class BytecodeGenMethod implements StatementVisitor { } public BytecodeGenMethod(LambdaExpression lambdaExpression, ArrayList usedVars, ResultSet resultSet, MethodVisitor mv, - int indexOfFirstParamLam, boolean isInterface, HashMap classFiles, String path, int lamCounter, SourceFile sf) { + int indexOfFirstParamLam, boolean isInterface, HashMap classFiles, String path, int lamCounter, SourceFile sf,HashMap genericsAndBoundsMethod, + HashMap genericsAndBounds) { this.resultSet = resultSet; this.mv = mv; @@ -149,6 +150,9 @@ public class BytecodeGenMethod implements StatementVisitor { this.path = path; this.lamCounter = lamCounter; this.sf = sf; + this.genericsAndBoundsMethod = genericsAndBoundsMethod; + this.genericsAndBounds = genericsAndBounds; + Iterator itr = lambdaExpression.params.iterator(); int i = indexOfFirstParamLam; @@ -644,7 +648,8 @@ public class BytecodeGenMethod implements StatementVisitor { ArrayList usedVars = kindOfLambda.getUsedVars(); new BytecodeGenMethod(lambdaExpression, usedVars,this.resultSet, mvLambdaBody, indexOfFirstParamLam, isInterface, - classFiles,this.path, lamCounter, sf); + classFiles,this.path, lamCounter, sf, genericsAndBoundsMethod, + genericsAndBounds); mvLambdaBody.visitMaxs(0, 0); mvLambdaBody.visitEnd();