Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/org.eclipse.etrice.generator.java/src/org/eclipse/etrice/generator/java/gen/DataClassGen.xtend4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/org.eclipse.etrice.generator.java/src/org/eclipse/etrice/generator/java/gen/DataClassGen.xtend b/plugins/org.eclipse.etrice.generator.java/src/org/eclipse/etrice/generator/java/gen/DataClassGen.xtend
index 9e702f449..13e64d428 100644
--- a/plugins/org.eclipse.etrice.generator.java/src/org/eclipse/etrice/generator/java/gen/DataClassGen.xtend
+++ b/plugins/org.eclipse.etrice.generator.java/src/org/eclipse/etrice/generator/java/gen/DataClassGen.xtend
@@ -141,7 +141,7 @@ class DataClassGen {
«IF a.size==0»
copy.«a.name» = «a.name».deepCopy();
«ELSE»
- for (int i=0;i<«a.size»;i++){
+ for (int i=0;i<«a.name».length;i++){
copy.«a.name»[i] = «a.name»[i].deepCopy();
}
«ENDIF»
@@ -149,7 +149,7 @@ class DataClassGen {
«IF a.size==0»
copy.«a.name» = «a.name»;
«ELSE»
- for (int i=0;i<«a.size»;i++){
+ for (int i=0;i<«a.name».length;i++){
copy.«a.name»[i] = «a.name»[i];
}
«ENDIF»

Back to the top