axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dee...@apache.org
Subject svn commit: r697634 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/client/Options.java
Date Sun, 21 Sep 2008 22:57:34 GMT
Author: deepal
Date: Sun Sep 21 15:57:34 2008
New Revision: 697634

URL: http://svn.apache.org/viewvc?rev=697634&view=rev
Log:
applying the patch in AXIS2-3441

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/client/Options.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/client/Options.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/client/Options.java?rev=697634&r1=697633&r2=697634&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/client/Options.java (original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/client/Options.java Sun
Sep 21 15:57:34 2008
@@ -569,6 +569,10 @@
      * @param parent (<code>null</code> if none)
      */
     public void setParent(Options parent) {
+        if (this == parent) {
+            throw new IllegalArgumentException("Invalid parent Options: they cannot be the
same object");
+        }
+
         this.parent = parent;
     }
 



Mime
View raw message