Changeset 351:b4bc67ea10ad in livinglogic.java.ul4

Show
Ignore:
Timestamp:
02/10/11 17:44:50 (8 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Fix integer overflow in rsplit implementation.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/src/com/livinglogic/ul4/Utils.java

    r350 r351  
    21542154                return Arrays.asList(StringUtils.split((String)obj)); 
    21552155            else if (arg instanceof String) 
    2156                 return rsplit((String)obj, (String)arg, 0xffffffff); 
     2156                return rsplit((String)obj, (String)arg, 0x7fffffff); 
    21572157        } 
    21582158        throw new UnsupportedOperationException(objectType(obj) + ".rsplit(" + objectType(arg) + ") not supported!");