commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benedikt Ritter (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LANG-1122) Inconsistent behavior of swap for malformed inputs
Date Wed, 29 Apr 2015 17:38:06 GMT
Benedikt Ritter created LANG-1122:
-------------------------------------

             Summary: Inconsistent behavior of swap for malformed inputs
                 Key: LANG-1122
                 URL: https://issues.apache.org/jira/browse/LANG-1122
             Project: Commons Lang
          Issue Type: Bug
          Components: lang.*
            Reporter: Benedikt Ritter
             Fix For: Patch Needed, 3.5


Following the discussion at https://github.com/apache/commons-lang/pull/47 we need to decide
how malformed inputs should be handled by the swap method. We have to handle several forms
of malformed inputs and we should decide how to do that based on the current behavior of ArrayUtils.
Malformed inputs are:

* array == null
* array.length == 0
* start < 0
* end < 0
* offset < 0
* start > end
* start > array.length
* end > array.length
* start + offset > array.length
* end + offset > array.length



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message