Commit ebb8d3c6 authored by Kristof Szabados's avatar Kristof Szabados
Browse files

minor fixes for incorrectly generated code.


Signed-off-by: Kristof Szabados's avatarKristof Szabados <Kristof.Szabados@ericsson.com>
parent 6e226b18
...@@ -367,7 +367,7 @@ public final class Check_Getcall_Statement extends Statement { ...@@ -367,7 +367,7 @@ public final class Check_Getcall_Statement extends Statement {
final String tempID = aData.getTemporaryVariableName(); final String tempID = aData.getTemporaryVariableName();
redirectParameter.generateCodeDecoded(aData, expression.preamble, parameter, tempID, false); redirectParameter.generateCodeDecoded(aData, expression.preamble, parameter, tempID, false);
final IType lastSignatureType = signature.getTypeRefdLast(CompilationTimeStamp.getBaseTimestamp()); final IType lastSignatureType = signature.getTypeRefdLast(CompilationTimeStamp.getBaseTimestamp());
final String signatureName = signature.getGenNameValue(aData, expression.expression); final String signatureName = lastSignatureType.getGenNameOwn();
expression.expression.append(MessageFormat.format(", new {0}_call_redirect_{1}(", signatureName, tempID)); expression.expression.append(MessageFormat.format(", new {0}_call_redirect_{1}(", signatureName, tempID));
} else { } else {
expression.expression.append(MessageFormat.format(", new {0}_call_redirect(", signature.getGenNameValue(aData, expression.expression))); expression.expression.append(MessageFormat.format(", new {0}_call_redirect(", signature.getGenNameValue(aData, expression.expression)));
......
...@@ -446,7 +446,7 @@ public final class Check_Getreply_Statement extends Statement { ...@@ -446,7 +446,7 @@ public final class Check_Getreply_Statement extends Statement {
final String tempID = aData.getTemporaryVariableName(); final String tempID = aData.getTemporaryVariableName();
redirectParameter.generateCodeDecoded(aData, expression.preamble, parameter, tempID, true); redirectParameter.generateCodeDecoded(aData, expression.preamble, parameter, tempID, true);
final IType lastSignatureType = signature.getTypeRefdLast(CompilationTimeStamp.getBaseTimestamp()); final IType lastSignatureType = signature.getTypeRefdLast(CompilationTimeStamp.getBaseTimestamp());
final String signatureName = signature.getGenNameValue(aData, expression.expression); final String signatureName = lastSignatureType.getGenNameOwn();
expression.expression.append(MessageFormat.format(", new {0}_reply_redirect_{1}(", signatureName, tempID)); expression.expression.append(MessageFormat.format(", new {0}_reply_redirect_{1}(", signatureName, tempID));
} else { } else {
expression.expression.append(MessageFormat.format(", new {0}_reply_redirect(", signature.getGenNameValue(aData, expression.expression))); expression.expression.append(MessageFormat.format(", new {0}_reply_redirect(", signature.getGenNameValue(aData, expression.expression)));
......
...@@ -483,7 +483,7 @@ public final class Getcall_Statement extends Statement { ...@@ -483,7 +483,7 @@ public final class Getcall_Statement extends Statement {
final String tempID = aData.getTemporaryVariableName(); final String tempID = aData.getTemporaryVariableName();
redirectParameter.generateCodeDecoded(aData, expression.preamble, parameter, tempID, false); redirectParameter.generateCodeDecoded(aData, expression.preamble, parameter, tempID, false);
final IType lastSignatureType = signature.getTypeRefdLast(CompilationTimeStamp.getBaseTimestamp()); final IType lastSignatureType = signature.getTypeRefdLast(CompilationTimeStamp.getBaseTimestamp());
final String signatureName = signature.getGenNameValue(aData, expression.expression); final String signatureName = lastSignatureType.getGenNameOwn();
expression.expression.append(MessageFormat.format(", new {0}_call_redirect_{1}(", signatureName, tempID)); expression.expression.append(MessageFormat.format(", new {0}_call_redirect_{1}(", signatureName, tempID));
} else { } else {
expression.expression.append(MessageFormat.format(", new {0}_call_redirect(", signature.getGenNameValue(aData, expression.expression))); expression.expression.append(MessageFormat.format(", new {0}_call_redirect(", signature.getGenNameValue(aData, expression.expression)));
......
...@@ -623,7 +623,7 @@ public final class Getreply_Statement extends Statement { ...@@ -623,7 +623,7 @@ public final class Getreply_Statement extends Statement {
final String tempID = aData.getTemporaryVariableName(); final String tempID = aData.getTemporaryVariableName();
redirectParameter.generateCodeDecoded(aData, expression.preamble, parameter, tempID, true); redirectParameter.generateCodeDecoded(aData, expression.preamble, parameter, tempID, true);
final IType lastSignatureType = signature.getTypeRefdLast(CompilationTimeStamp.getBaseTimestamp()); final IType lastSignatureType = signature.getTypeRefdLast(CompilationTimeStamp.getBaseTimestamp());
final String signatureName = signature.getGenNameValue(aData, expression.expression); final String signatureName = lastSignatureType.getGenNameOwn();
expression.expression.append(MessageFormat.format(", new {0}_reply_redirect_{1}(", signatureName, tempID)); expression.expression.append(MessageFormat.format(", new {0}_reply_redirect_{1}(", signatureName, tempID));
} else { } else {
expression.expression.append(MessageFormat.format(", new {0}_reply_redirect(", signature.getGenNameValue(aData, expression.expression))); expression.expression.append(MessageFormat.format(", new {0}_reply_redirect(", signature.getGenNameValue(aData, expression.expression)));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment