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 "Full Name (JIRA)" <ji...@apache.org> on 2007/03/22 09:51:32 UTC

[jira] Created: (AXIS2-2364) Length restrictions wrong in generated classes

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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Resolved: (AXIS2-2364) Length restrictions wrong in generated classes

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2364?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amila Chinthaka Suriarachchi resolved AXIS2-2364.
-------------------------------------------------

    Resolution: Fixed

fixed the issue for Axis2 1.2

> 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org