You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@axis.apache.org by am...@apache.org on 2010/12/25 04:33:35 UTC

svn commit: r1052745 - /axis/axis2/java/core/trunk/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate-bean.xsl

Author: amilas
Date: Sat Dec 25 03:33:34 2010
New Revision: 1052745

URL: http://svn.apache.org/viewvc?rev=1052745&view=rev
Log:
fixing the issue AXIS2-3034

Modified:
    axis/axis2/java/core/trunk/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate-bean.xsl

Modified: axis/axis2/java/core/trunk/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate-bean.xsl
URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate-bean.xsl?rev=1052745&r1=1052744&r2=1052745&view=diff
==============================================================================
--- axis/axis2/java/core/trunk/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate-bean.xsl (original)
+++ axis/axis2/java/core/trunk/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate-bean.xsl Sat Dec 25 03:33:34 2010
@@ -2087,7 +2087,9 @@
                            </xsl:otherwise>
                        </xsl:choose>
 
-                    if (enumeration==null) throw new java.lang.IllegalArgumentException();
+                    if ((enumeration == null) &amp;&amp; !((value == null) || (value.equals("")))) {
+                        throw new java.lang.IllegalArgumentException();
+                    }
                     return enumeration;
                 }
                 public static <xsl:value-of select="$name"/> fromString(java.lang.String value,java.lang.String namespaceURI)