Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Mavenfile
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ plugin :clean do
'failOnError' => 'false' )
end

jar 'org.jruby:jruby-core', '9.2.0.0', :scope => :provided
jar 'org.jruby:jruby-core', '9.2.1.0', :scope => :provided
# for invoker generated classes we need to add javax.annotation when on Java > 8
jar 'javax.annotation:javax.annotation-api', '1.3.1', :scope => :compile
jar 'org.junit.jupiter:junit-jupiter', '5.11.4', :scope => :test
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/org/jruby/ext/openssl/StringHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ static RubyString newString(final Ruby runtime, final byte[] bytes, final int co
}

static RubyString newString(final Ruby runtime, final CharSequence chars) {
return new RubyString(runtime, runtime.getString(), chars, ASCIIEncoding.INSTANCE);
return RubyString.newString(runtime, chars, ASCIIEncoding.INSTANCE);
}

static ByteList setByteListShared(final RubyString str) {
Expand All @@ -73,12 +73,12 @@ static ByteList setByteListShared(final RubyString str) {

static RubyString newUTF8String(final Ruby runtime, final ByteList bytes) {
ByteList byteList = new ByteList(RubyEncoding.encodeUTF8(bytes), UTF8Encoding.INSTANCE, false);
return new RubyString(runtime, runtime.getString(), byteList);
return RubyString.newString(runtime, byteList);
}

static RubyString newUTF8String(final Ruby runtime, final CharSequence chars) {
ByteList byteList = new ByteList(RubyEncoding.encodeUTF8(chars), UTF8Encoding.INSTANCE, false);
return new RubyString(runtime, runtime.getString(), byteList);
return RubyString.newString(runtime, byteList);
}

static RubyString newStringFrozen(final Ruby runtime, final ByteList bytes) {
Expand Down
Loading