Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.5.7, 1.6-rc-1
-
None
-
Patch
Description
The current implementation does not handle Unicode surrogate pairs. It fails for characters outside the BMP.
Here's a patch for the bug:
public static String reverse(String self) { return new StringBuilder(self).reverse().toString(); }