From 2ba813b311b55cb74e5cbc0d1c7026ddcf5a2f87 Mon Sep 17 00:00:00 2001 From: James Strachan Date: Tue, 10 Jan 2006 15:26:51 +0000 Subject: [PATCH] added support for Throwable in OpenWire.Net git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@367640 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/activemq/openwire/tool/OpenWireScript.java | 5 ++++- .../src/gram/script/GenerateCSharpMarshalling.groovy | 8 ++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/activemq-core/src/gram/java/org/activemq/openwire/tool/OpenWireScript.java b/activemq-core/src/gram/java/org/activemq/openwire/tool/OpenWireScript.java index 1f55990dbf..d50ebc14e5 100755 --- a/activemq-core/src/gram/java/org/activemq/openwire/tool/OpenWireScript.java +++ b/activemq-core/src/gram/java/org/activemq/openwire/tool/OpenWireScript.java @@ -80,7 +80,10 @@ public abstract class OpenWireScript extends GramSupport { if (name.equals("String")) { return "string"; } - else if (name.equals("Throwable") || name.equals("Exception") || name.equals("ByteSequence")) { + else if (name.equals("Throwable") || name.equals("Exception")) { + return "BrokerError"; + } + else if (name.equals("ByteSequence")) { return "byte[]"; } else if (name.equals("boolean")) { diff --git a/activemq-core/src/gram/script/GenerateCSharpMarshalling.groovy b/activemq-core/src/gram/script/GenerateCSharpMarshalling.groovy index 644e66f883..04f3136cf0 100755 --- a/activemq-core/src/gram/script/GenerateCSharpMarshalling.groovy +++ b/activemq-core/src/gram/script/GenerateCSharpMarshalling.groovy @@ -177,6 +177,10 @@ namespace OpenWire.Client.IO out << "ReadDestination(dataIn)" break; + case "BrokerError": + out << "ReadBrokerError(dataIn)" + break; + case "BrokerId[]": out << "ReadBrokerIds(dataIn)" break; @@ -274,6 +278,10 @@ namespace OpenWire.Client.IO out << "WriteDestination($getter, dataOut);" break; + case "BrokerError": + out << "WriteBrokerError($getter, dataOut);" + break; + case "BrokerId[]": out << "WriteBrokerIds($getter, dataOut);" break;