Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jruby/jruby
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: f6eda6434998
Choose a base ref
...
head repository: jruby/jruby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1f378d5ed27d
Choose a head ref
  • 5 commits
  • 6 files changed
  • 1 contributor

Commits on Apr 25, 2018

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    7b93c23 View commit details
  2. Copy the full SHA
    e0a96f4 View commit details
  3. Copy the full SHA
    1e23547 View commit details
  4. Copy the full SHA
    04f6943 View commit details
  5. Copy the full SHA
    1f378d5 View commit details
5 changes: 3 additions & 2 deletions core/src/main/java/org/jruby/RubyStruct.java
Original file line number Diff line number Diff line change
@@ -362,9 +362,10 @@ public IRubyObject initialize(ThreadContext context, IRubyObject[] args) {

if (keywordInit.isTrue()) {
IRubyObject maybeKwargs = ArgsUtil.getOptionsArg(runtime, args);
int argc = maybeKwargs.isNil() ? args.length : args.length - 1;

if (maybeKwargs.isNil())
throw runtime.newArgumentError("wrong number of arguments (given " + args.length + ", expected 0)");
if (argc >= 1)
throw runtime.newArgumentError("wrong number of arguments (given " + argc + ", expected 0)");

RubyHash kwArgs = (RubyHash) maybeKwargs;
RubyArray __members__ = __member__();
13 changes: 8 additions & 5 deletions core/src/main/java/org/jruby/RubyThread.java
Original file line number Diff line number Diff line change
@@ -1748,11 +1748,14 @@ public void exceptionRaised(Throwable throwable) {

if (runtime.getSystemExit().isInstance(rubyException)) {
runtime.getThreadService().getMainThread().raise(rubyException);
} else if (abortOnException(runtime)) {
runtime.getThreadService().getMainThread().raise(rubyException);
} else if (reportOnException.isTrue()) {
printReportExceptionWarning();
runtime.printError(throwable);
} else if (abortOnException(runtime) || reportOnException.isTrue()) {
if (reportOnException.isTrue()) {
printReportExceptionWarning();
runtime.printError(throwable);
}
if (abortOnException(runtime)) {
runtime.getThreadService().getMainThread().raise(rubyException);
}
} else if (runtime.isDebug()) {
runtime.printError(throwable);
}
1 change: 1 addition & 0 deletions spec/tags/ruby/core/string/uminus_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
critical(only seems to fail in a full run):String#-@ returns the same object when it's called on the same String literal
1 change: 1 addition & 0 deletions test/mri/excludes/TestString.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
exclude :test_ASET_limits, "expected behavior; JRuby can only do int range offsets into a string, so error reflects that"
exclude :test_crypt, "does not raise as expected"
exclude :test_setter, "does not raise as expected"
exclude :test_uplus_minus, "only seems to fail in a full test run"
2 changes: 2 additions & 0 deletions test/mri/excludes/TestThread.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# frozen_string_literal: false
exclude(/_stack_size$/, 'often too expensive')
exclude :test_abort_on_exception, "very sensitive to thread timing and parallelism"
exclude :test_inspect_with_fiber, "Thread.current is known to reflect the fiber, not the thread, in JRuby"
exclude :test_handle_interrupt, "handle_interrupt is not working properly"
exclude :test_handle_interrupt_and_p, "handle_interrupt is not working properly"
exclude :test_handle_interrupt_blocking, "handle_interrupt is not working properly"
@@ -12,6 +13,7 @@
exclude :test_no_valid_cfp, "may depend on MRI internal stack structures"
exclude :test_priority, "unreliably depends on thread scheduling"
exclude :test_recursive_outer, "expected to be fixed by our change based on MRI r43981 but was not"
exclude :test_report_on_exception, "very sensitive to thread timing and parallelism"
exclude :test_safe_level, "SAFE levels are unsupported"
exclude :test_thread_join_in_trap, "fails intermittently (#4956)"
exclude :test_thread_join_main_thread, "hangs"
1 change: 1 addition & 0 deletions test/mri/runner.rb
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env ruby
# frozen_string_literal: false
require 'rbconfig'