Skip to content

Commit 4e5817d

Browse files
committed
Don't re-raise as RuntimeException
We expect exceptions from catString, so just re-raise directly. This caused the ugly internal RuntimeException trace in ruby/rake#619. This does not fix that issue, but it properly lets the original Ruby exception propagate.
1 parent 28b6ada commit 4e5817d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/java/org/jruby/ext/stringio/StringIO.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1662,7 +1662,7 @@ private static void catString(RubyString myString, RubyString str) {
16621662
try {
16631663
RubyString unused = (RubyString) CAT_WITH_CODE_RANGE.invokeExact(myString, str);
16641664
} catch (Throwable t) {
1665-
throw new RuntimeException(t);
1665+
Helpers.throwException(t);
16661666
}
16671667
}
16681668

0 commit comments

Comments
 (0)