You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by sr...@apache.org on 2021/04/22 10:49:07 UTC

[plc4x] 02/02: plc4j: fixed issue where context wasn't popped using a manual array

This is an automated email from the ASF dual-hosted git repository.

sruehl pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git

commit ec5f42159262edb0f312c31d74458cf3486b4da0
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Thu Apr 22 12:48:19 2021 +0200

    plc4j: fixed issue where context wasn't popped using a manual array
---
 .../src/main/resources/templates/java/io-template.java.ftlh             | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/build-utils/language-java/src/main/resources/templates/java/io-template.java.ftlh b/build-utils/language-java/src/main/resources/templates/java/io-template.java.ftlh
index 86d038f..358bfb5 100644
--- a/build-utils/language-java/src/main/resources/templates/java/io-template.java.ftlh
+++ b/build-utils/language-java/src/main/resources/templates/java/io-template.java.ftlh
@@ -544,7 +544,7 @@ public class ${type.name}IO implements <#if outputFlavor != "passive">MessageIO<
             for(${helper.getLanguageTypeNameForField(field)} element : _value.get${manualArrayField.name?cap_first}()) {
                 ${helper.toSerializationExpression(manualArrayField, manualArrayField.serializeExpression, type.parserArguments)};
             }
-            io.pushContext("${manualArrayField.name}", WithReaderWriterArgs.WithRenderAsList(true));
+            io.popContext("${manualArrayField.name}", WithReaderWriterArgs.WithRenderAsList(true));
         }
         <#break>
     <#case "manual">