From 51db72d6d1fdbaebfc2f91fec611cf26d35ea8f5 Mon Sep 17 00:00:00 2001 From: "Rafael H. Schloming" Date: Fri, 23 May 2008 19:16:04 +0000 Subject: QPID-901: Track and report session exceptions, modified generator validate values before trying to encode them. Also, moved createDurableSubscriber from AMQSession_0_10 -> AMQSession. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@659631 13f79535-47bb-0310-9956-ffa450edef68 --- java/common/Composite.tpl | 3 +++ 1 file changed, 3 insertions(+) (limited to 'java/common/Composite.tpl') diff --git a/java/common/Composite.tpl b/java/common/Composite.tpl index 4e1a54de81..4f72279bcc 100644 --- a/java/common/Composite.tpl +++ b/java/common/Composite.tpl @@ -8,6 +8,7 @@ import java.util.UUID; import org.apache.qpidity.transport.codec.Decoder; import org.apache.qpidity.transport.codec.Encodable; import org.apache.qpidity.transport.codec.Encoder; +import org.apache.qpidity.transport.codec.Validator; import org.apache.qpidity.transport.network.Frame; @@ -136,6 +137,7 @@ for f in fields: } public final $name $(f.set)($(f.type) value) { + $(f.check) this.$(f.name) = value; this.has_$(f.name) = true; this.dirty = true; @@ -143,6 +145,7 @@ for f in fields: } public final $name $(f.name)($(f.type) value) { + $(f.check) this.$(f.name) = value; this.has_$(f.name) = true; this.dirty = true; -- cgit v1.2.1