Length restrictions wrong in generated classes
----------------------------------------------

                 Key: AXIS2-2364
                 URL: https://issues.apache.org/jira/browse/AXIS2-2364
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: adb
    Affects Versions: nightly
         Environment: WSDL2Java, ADB binding
            Reporter: Full Name


The following restriction:

<minLength value="10"/>
<maxLength value="80"/>

results in the following code:

  if (  (10 < java.lang.String.valueOf(param).length()) &&
 (java.lang.String.valueOf(param).length() >= 80)  ) {
                                                 this.value=param;
                                             }
                                            else {
                                                 throw new
java.lang.RuntimeException();
                                             }
The last comparison should be <= and not >=. The first check should
include 10 in my opinion.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to