You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sa...@apache.org on 2005/11/08 09:11:14 UTC

svn commit: r331725 - in /webservices/axis2/trunk/c: include/axis2_error.h include/axis2_handler_desc.h modules/core/description/src/handler_desc.c

Author: samisa
Date: Tue Nov  8 00:11:02 2005
New Revision: 331725

URL: http://svn.apache.org/viewcvs?rev=331725&view=rev
Log:
Fixed a bug in create method. Added some new errors

Modified:
    webservices/axis2/trunk/c/include/axis2_error.h
    webservices/axis2/trunk/c/include/axis2_handler_desc.h
    webservices/axis2/trunk/c/modules/core/description/src/handler_desc.c

Modified: webservices/axis2/trunk/c/include/axis2_error.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_error.h?rev=331725&r1=331724&r2=331725&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_error.h (original)
+++ webservices/axis2/trunk/c/include/axis2_error.h Tue Nov  8 00:11:02 2005
@@ -162,7 +162,9 @@
         /** Service accessed has invalid state */
         AXIS2_ERROR_INVALID_STATE_SVC,
         /** Service group accessed has invalid state */
-        AXIS2_ERROR_INVALID_STATE_SVC_GRP
+        AXIS2_ERROR_INVALID_STATE_SVC_GRP,
+        /** Array list index out of bounds */
+        AXIS2_ERROR_INDEX_OUT_OF_BOUNDS
     };
 
 /** @} */

Modified: webservices/axis2/trunk/c/include/axis2_handler_desc.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_handler_desc.h?rev=331725&r1=331724&r2=331725&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_handler_desc.h (original)
+++ webservices/axis2/trunk/c/include/axis2_handler_desc.h Tue Nov  8 00:11:02 2005
@@ -44,7 +44,7 @@
  */
 
 /**
- *   \brief Phase Rule operations struct
+ *   \brief Handler Description operations struct
  */
  AXIS2_DECLARE_DATA   typedef struct axis2_handler_desc_ops
     { 
@@ -87,11 +87,11 @@
     } axis2_handler_desc_ops_t;
 	
    /** 
-    * \brief Phase Rule struct
+    * \brief Handler Description struct
     */
     typedef struct axis2_handler_desc
     {
-        /** Phase Rule related operations */
+        /** Handler Description related operations */
         axis2_handler_desc_ops_t *ops;
     } axis2_handler_desc_t;
 

Modified: webservices/axis2/trunk/c/modules/core/description/src/handler_desc.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/description/src/handler_desc.c?rev=331725&r1=331724&r2=331725&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/description/src/handler_desc.c (original)
+++ webservices/axis2/trunk/c/modules/core/description/src/handler_desc.c Tue Nov  8 00:11:02 2005
@@ -113,15 +113,7 @@
     {
         handler_desc_impl->qname = qname; /* shallow copy */
     }
-    
-    if (!handler_desc_impl->handler_desc.ops)
-    {
-        AXIS2_ERROR_SET_ERROR_NUMBER((*env)->error, AXIS2_ERROR_NO_MEMORY);
-        AXIS2_ERROR_SET_STATUS_CODE((*env)->error, AXIS2_FAILURE);
-        axis2_handler_desc_free(&(handler_desc_impl->handler_desc), env);
-        return NULL;        
-    }
-    
+
     /* initialize operations */
     handler_desc_impl->handler_desc.ops = NULL;
     handler_desc_impl->handler_desc.ops  = AXIS2_MALLOC( (*env)->allocator, sizeof(axis2_handler_desc_ops_t) );