Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Rentz-Reichert2011-07-08 10:16:33 -0400
committerHenrik Rentz-Reichert2011-07-08 10:16:33 -0400
commita4779a2782f30fd0997c8fde83e54ab61fe2f229 (patch)
tree1783d2b6a94a1ef5be59510245b411f7bbb2a568 /plugins/org.eclipse.etrice.generator.java/src/templates/ProtocolClass.xpt
parentee93b9edd438fb8bf338a927b4ee4e651fcd400f (diff)
downloadorg.eclipse.etrice-a4779a2782f30fd0997c8fde83e54ab61fe2f229.tar.gz
org.eclipse.etrice-a4779a2782f30fd0997c8fde83e54ab61fe2f229.tar.xz
org.eclipse.etrice-a4779a2782f30fd0997c8fde83e54ab61fe2f229.zip
NEW - bug 351551: data classes should be copied when sent with a message
https://bugs.eclipse.org/bugs/show_bug.cgi?id=351551 send a deep copy of data objects with messages
Diffstat (limited to 'plugins/org.eclipse.etrice.generator.java/src/templates/ProtocolClass.xpt')
-rw-r--r--plugins/org.eclipse.etrice.generator.java/src/templates/ProtocolClass.xpt2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/org.eclipse.etrice.generator.java/src/templates/ProtocolClass.xpt b/plugins/org.eclipse.etrice.generator.java/src/templates/ProtocolClass.xpt
index fef645f4a..ae3658512 100644
--- a/plugins/org.eclipse.etrice.generator.java/src/templates/ProtocolClass.xpt
+++ b/plugins/org.eclipse.etrice.generator.java/src/templates/ProtocolClass.xpt
@@ -215,7 +215,7 @@ public interface I«name»{
}
if (getPeerAddress()!=null)
«IF this.data==null»getPeerMsgReceiver().receive(new EventMessage(getPeerAddress(), «dir»_«this.name»));
- «ELSE» getPeerMsgReceiver().receive(new EventWithDataMessage(getPeerAddress(), «dir»_«this.name», «this.data.name»));
+ «ELSE» getPeerMsgReceiver().receive(new EventWithDataMessage(getPeerAddress(), «dir»_«this.name», «this.data.name».deepCopy()));
«ENDIF-»
«ENDIF-»
}

Back to the top