rubyspec/rubyspec — pull request #104 by metadave (2012-01-06 01:14:50+00:00)
Title: Raise an ArgumentError on an invalid UTF-8 char

When split is applied to a broken UTF-8 string (without one byte from the right) with unicode char at the end - JRuby silently hangs. On MRI Ruby 1.9.2 it raises ArgumentError as expected.

http://jira.codehaus.org/browse/JRUBY-3769