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:53:32 UTC

[jira] Created: (AXIS2-2365) Better exception type if failed length check

Better exception type if failed length check
--------------------------------------------

                 Key: AXIS2-2365
                 URL: https://issues.apache.org/jira/browse/AXIS2-2365
             Project: Axis 2.0 (Axis2)
          Issue Type: Improvement
          Components: adb
    Affects Versions: nightly
            Reporter: Full Name


If a ADB setter is called with an invalid lenght string, a Runtime>Excpetion without any further information is being thrown. A specialized excpetion would be usefull.

if (  (10 < java.lang.String.valueOf(param).length()) &&
(java.lang.String.valueOf(param).length() >= 80)  ) {
                                                 this.value=param;
                                             }
                                             else {
                                                 throw new
java.lang.RuntimeException(); 



-- 
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] Updated: (AXIS2-2365) Better exception type if failed length check

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

Deepal Jayasinghe updated AXIS2-2365:
-------------------------------------

    Priority: Blocker  (was: Major)

> Better exception type if failed length check
> --------------------------------------------
>
>                 Key: AXIS2-2365
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2365
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: adb
>    Affects Versions: nightly
>            Reporter: Full Name
>            Assignee: Amila Chinthaka Suriarachchi
>            Priority: Blocker
>
> If a ADB setter is called with an invalid lenght string, a Runtime>Excpetion without any further information is being thrown. A specialized excpetion would be usefull.
> if (  (10 < java.lang.String.valueOf(param).length()) &&
> (java.lang.String.valueOf(param).length() >= 80)  ) {
>                                                  this.value=param;
>                                              }
>                                              else {
>                                                  throw new
> java.lang.RuntimeException(); 

-- 
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] Updated: (AXIS2-2365) Better exception type if failed length check

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

Davanum Srinivas updated AXIS2-2365:
------------------------------------

    Assignee: Amila Chinthaka Suriarachchi

> Better exception type if failed length check
> --------------------------------------------
>
>                 Key: AXIS2-2365
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2365
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: adb
>    Affects Versions: nightly
>            Reporter: Full Name
>         Assigned To: Amila Chinthaka Suriarachchi
>
> If a ADB setter is called with an invalid lenght string, a Runtime>Excpetion without any further information is being thrown. A specialized excpetion would be usefull.
> if (  (10 < java.lang.String.valueOf(param).length()) &&
> (java.lang.String.valueOf(param).length() >= 80)  ) {
>                                                  this.value=param;
>                                              }
>                                              else {
>                                                  throw new
> java.lang.RuntimeException(); 

-- 
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-2365) Better exception type if failed length check

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

Amila Chinthaka Suriarachchi resolved AXIS2-2365.
-------------------------------------------------

    Resolution: Fixed

now it throws an ADBException

> Better exception type if failed length check
> --------------------------------------------
>
>                 Key: AXIS2-2365
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2365
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: adb
>    Affects Versions: nightly
>            Reporter: Full Name
>            Assignee: Amila Chinthaka Suriarachchi
>            Priority: Blocker
>
> If a ADB setter is called with an invalid lenght string, a Runtime>Excpetion without any further information is being thrown. A specialized excpetion would be usefull.
> if (  (10 < java.lang.String.valueOf(param).length()) &&
> (java.lang.String.valueOf(param).length() >= 80)  ) {
>                                                  this.value=param;
>                                              }
>                                              else {
>                                                  throw new
> java.lang.RuntimeException(); 

-- 
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