Skip to content
Draft
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 core/src/main/java/org/jruby/RubyBignum.java
Original file line number Diff line number Diff line change
Expand Up @@ -1028,7 +1028,7 @@ private boolean float_eq(ThreadContext context, RubyFloat y) {

// compare as integers to avoid precision loss
IRubyObject rel = op_cmp(context, newBignorm(context.runtime, yd));
return rel instanceof RubyFixnum fix && fix.getLongValue() == 0;
return rel instanceof RubyFixnum fix && fix.getValue() == 0;
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/RubyInteger.java
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ public static RubyString singleCharString(Ruby runtime, byte b, RubyClass meta,

if (bytes == null) {
// just share byte array
return RubyString.newStringShared(runtime, SINGLE_CHAR_BYTES[ub], enc);
return RubyString.newStringShared(runtime, SINGLE_CHAR_BYTES[ub], 0, SINGLE_CHAR_BYTES[ub].length, enc);
}

// use shared for cached bytelists
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/RubyModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -3225,7 +3225,7 @@
if (hash.isBuiltin(this)) return id;

// we truncate for Java hashcode
return (int) hash.call(context, this, this).convertToInteger().getLongValue();
return (int) hash.call(context, this, this).convertToInteger().asLong(context);
}

@JRubyMethod(name = "hash")
Expand All @@ -3234,8 +3234,8 @@
}

@Override
public RubyString to_s() {

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:profiler (Java 25)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:ruby:debug (Java 27)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:ffi (Java 25)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:jrubyc (Java 27)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:jruby (Java 25)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:jrubyc (Java 25)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:ji (Java 25)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:ruby:debug (Java 25)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:compiler (Java 27 -indy)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / mvn -Pmain (Java 25)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:compiler (Java 25)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:ji (Java 25 -indy)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:compiler (Java 27)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:ffi (Java 27)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:profiler (Java 27)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:compiler (Java 25 -indy)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:jruby (Java 25)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / mvn -Pcomplete (Java 25)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / mvn -Pjruby-jars,test -Dinvoker.test=extended (Java 25)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / mvn -Posgi (Java 25)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / mvn -Pjruby-jars (Java 25)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:regression (Java 27)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:jruby (Java 21)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake test:jruby:int (Java 21)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:profiler (Java 21)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:ji (Java 27 -indy)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:jrubyc (Java 21)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake test:jruby:int (Java 25)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:ji (Java 27)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:ruby:debug (Java 21)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / Dependency check

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:jruby (Java 27)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / mvn -Pmain (Java 21)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / mvn -Pdist (Java 21)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / mvn -Pmain,test -Dinvoker.test=extended (Java 21)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:jruby (Java 27)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake test:jruby:aot (Java 27)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / mvn -Posgi (Java 21)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake test:jruby:int (Java 27)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:ji (Java 21 -indy)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:compiler (Java 21)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / mvn -Pmain,test -Dinvoker.test=extended (Java 25)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:compiler (Java 21 -indy)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:regression (Java 25)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / mvn -Pdist (Java 25)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / mvn -Pcomplete (Java 21)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / regression-specs-jit

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:ffi (Java 21)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / mvn -Pjruby-jars,test -Dinvoker.test=extended (Java 21)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:ji (Java 21)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / jruby-tests-dev

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake test:jruby:aot (Java 25)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:regression (Java 21)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake test:jruby:jit (Java 27 -indy)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake test:slow_suites (Java 27)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake test:jruby:aot (Java 21)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake test:slow_suites (Java 21)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:jruby (Java 21)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / Build JRuby release artifacts (21)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake test:slow_suites (Java 25)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / mvn -Pjruby-jars (Java 21)

[deprecation] to_s() in RubyBasicObject has been deprecated

Check warning on line 3237 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake test:jruby:jit (Java 21 -indy)

[deprecation] to_s() in RubyBasicObject has been deprecated
return (RubyString) to_s(getCurrentContext());

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:profiler (Java 25)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:ruby:debug (Java 27)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:ffi (Java 25)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:jrubyc (Java 27)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:jruby (Java 25)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:jrubyc (Java 25)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:ji (Java 25)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:ruby:debug (Java 25)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:compiler (Java 27 -indy)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / mvn -Pmain (Java 25)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:compiler (Java 25)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:ji (Java 25 -indy)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:compiler (Java 27)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:ffi (Java 27)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:profiler (Java 27)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:compiler (Java 25 -indy)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:jruby (Java 25)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / mvn -Pcomplete (Java 25)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / mvn -Pjruby-jars,test -Dinvoker.test=extended (Java 25)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / mvn -Posgi (Java 25)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / mvn -Pjruby-jars (Java 25)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:regression (Java 27)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:jruby (Java 21)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake test:jruby:int (Java 21)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:profiler (Java 21)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:ji (Java 27 -indy)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:jrubyc (Java 21)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake test:jruby:int (Java 25)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:ji (Java 27)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:ruby:debug (Java 21)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / Dependency check

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:jruby (Java 27)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / mvn -Pmain (Java 21)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / mvn -Pdist (Java 21)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / mvn -Pmain,test -Dinvoker.test=extended (Java 21)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:jruby (Java 27)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake test:jruby:aot (Java 27)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / mvn -Posgi (Java 21)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake test:jruby:int (Java 27)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:ji (Java 21 -indy)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:compiler (Java 21)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / mvn -Pmain,test -Dinvoker.test=extended (Java 25)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:compiler (Java 21 -indy)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:regression (Java 25)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / mvn -Pdist (Java 25)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / mvn -Pcomplete (Java 21)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / regression-specs-jit

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:ffi (Java 21)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / mvn -Pjruby-jars,test -Dinvoker.test=extended (Java 21)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:ji (Java 21)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / jruby-tests-dev

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake test:jruby:aot (Java 25)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:regression (Java 21)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake test:jruby:jit (Java 27 -indy)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake test:slow_suites (Java 27)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake test:jruby:aot (Java 21)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake test:slow_suites (Java 21)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake spec:jruby (Java 21)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / Build JRuby release artifacts (21)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake test:slow_suites (Java 25)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / mvn -Pjruby-jars (Java 21)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated

Check warning on line 3238 in core/src/main/java/org/jruby/RubyModule.java

View workflow job for this annotation

GitHub Actions / rake test:jruby:jit (Java 21 -indy)

[deprecation] getCurrentContext() in RubyBasicObject has been deprecated
}

/** rb_mod_to_s
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/RubyRegexp.java
Original file line number Diff line number Diff line change
Expand Up @@ -1586,7 +1586,7 @@ public IRubyObject named_captures(ThreadContext context) {
for (int idx = 0; idx<backrefs.length; idx++) {
ary.storeInternal(context, idx, asFixnum(context, backrefs[idx]));
}
RubyString name = RubyString.newStringShared(context.runtime, e.name, e.nameP, e.nameEnd - e.nameP);
RubyString name = RubyString.newStringShared(context.runtime, e.name, e.nameP, e.nameEnd - e.nameP, ASCIIEncoding.INSTANCE);
hash.fastASet(name.freeze(context), ary);
}
return hash;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@
import java.util.function.BiConsumer;

import static org.jruby.RubyBasicObject.getMetaClass;
import static org.jruby.api.Access.stringClass;
import static org.jruby.api.Convert.*;
import static org.jruby.api.Create.newString;
import static org.jruby.api.Error.*;
import static org.jruby.runtime.marshal.MarshalCommon.TYPE_IVAR;
import static org.jruby.runtime.marshal.MarshalCommon.TYPE_UCLASS;
Expand Down Expand Up @@ -532,7 +532,7 @@ public void writeEncoding(ThreadContext context, RubyOutputStream out, Encoding
writeObjectData(context, out, context.tru);
} else {
writeAndRegisterSymbol(out, symbolTable.getEncodingSymbol());
RubyString encodingString = new RubyString(context.runtime, stringClass(context), encoding.getName());
RubyString encodingString = newString(context, encoding.getName());
writeObjectData(context, out, encodingString);
}
}
Expand Down
4 changes: 2 additions & 2 deletions core/src/main/java/org/jruby/util/RubyTimeParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ public IRubyObject parse(ThreadContext context, RubyTime self, RubyString str, I
if (prec < 0) prec = Long.MAX_VALUE;

if (!isEOS() && (isSpace() || Character.isWhitespace(bytes[end - 1]))) {
throw argumentError(context, str(context.runtime, "can't parse: ", str.inspect()));
throw argumentError(context, str(context.runtime, "can't parse: ", str.inspect(context)));
}
year = parseInt(context, true, Long.MAX_VALUE);
if (year.isNil()) throw argumentError(context, str(context.runtime, "can't parse: ", str.inspect()));
if (year.isNil()) throw argumentError(context, str(context.runtime, "can't parse: ", str.inspect(context)));
if (ndigits < 4) {
IRubyObject invalidYear = context.runtime.newString(new ByteList(bytes, ptr - ndigits - beg, ndigits, true));
throw argumentError(context, str(context.runtime, "year must be 4 or more digits: ", invalidYear));
Expand Down
Loading