You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by js...@apache.org on 2006/01/10 16:27:09 UTC

svn commit: r367640 - in /incubator/activemq/trunk/activemq-core/src/gram: java/org/activemq/openwire/tool/OpenWireScript.java script/GenerateCSharpMarshalling.groovy

Author: jstrachan
Date: Tue Jan 10 07:26:51 2006
New Revision: 367640

URL: http://svn.apache.org/viewcvs?rev=367640&view=rev
Log:
added support for Throwable in OpenWire.Net

Modified:
    incubator/activemq/trunk/activemq-core/src/gram/java/org/activemq/openwire/tool/OpenWireScript.java
    incubator/activemq/trunk/activemq-core/src/gram/script/GenerateCSharpMarshalling.groovy

Modified: incubator/activemq/trunk/activemq-core/src/gram/java/org/activemq/openwire/tool/OpenWireScript.java
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-core/src/gram/java/org/activemq/openwire/tool/OpenWireScript.java?rev=367640&r1=367639&r2=367640&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/gram/java/org/activemq/openwire/tool/OpenWireScript.java (original)
+++ incubator/activemq/trunk/activemq-core/src/gram/java/org/activemq/openwire/tool/OpenWireScript.java Tue Jan 10 07:26:51 2006
@@ -80,7 +80,10 @@
         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")) {

Modified: incubator/activemq/trunk/activemq-core/src/gram/script/GenerateCSharpMarshalling.groovy
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-core/src/gram/script/GenerateCSharpMarshalling.groovy?rev=367640&r1=367639&r2=367640&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/gram/script/GenerateCSharpMarshalling.groovy (original)
+++ incubator/activemq/trunk/activemq-core/src/gram/script/GenerateCSharpMarshalling.groovy Tue Jan 10 07:26:51 2006
@@ -177,6 +177,10 @@
                             out << "ReadDestination(dataIn)"
                             break;
 
+                        case "BrokerError":
+                            out << "ReadBrokerError(dataIn)"
+                            break;
+
                         case "BrokerId[]":
                             out << "ReadBrokerIds(dataIn)"
                             break;
@@ -272,6 +276,10 @@
 
                         case "ActiveMQDestination":
                             out << "WriteDestination($getter, dataOut);"
+                            break;
+
+                        case "BrokerError":
+                            out << "WriteBrokerError($getter, dataOut);"
                             break;
 
                         case "BrokerId[]":