From fe7a265c78bddb93c9d62feac882f663315783cc Mon Sep 17 00:00:00 2001 From: Charles Oliver Nutter Date: Wed, 13 Mar 2024 09:50:06 -0500 Subject: [PATCH] Restore this name for transition purposes Another one used by StringIO. See ruby/stringio#84 and ruby/stringio#88. --- core/src/main/java/org/jruby/RubyString.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/src/main/java/org/jruby/RubyString.java b/core/src/main/java/org/jruby/RubyString.java index fbd2fdce4c9..f1ffad1fd26 100644 --- a/core/src/main/java/org/jruby/RubyString.java +++ b/core/src/main/java/org/jruby/RubyString.java @@ -3535,6 +3535,11 @@ private IRubyObject byteARef(Ruby runtime, IRubyObject idx) { return obj; } + @Deprecated + public final IRubyObject substr19(Ruby runtime, int beg, int len) { + return substrEnc(runtime, beg, len); + } + public final IRubyObject substrEnc(Ruby runtime, int beg, int len) { if (len < 0) return runtime.getNil(); int length = value.getRealSize();