Error messages for failed casts using Integer() subtly different to MRI #3346
A trivial problem that I fell over because I had tests that asserted on the error message. But maybe it has an equally trivial solution.
MRI gives the error message
JRuby gives the error message
The text was updated successfully, but these errors were encountered:
* jruby-1_7: (46 commits) make previous commit null-safe + review JRuby home verification - normalize once! normalize JRubyHome for windows. backport ruby 1.9.3 test_bigdecimal from MRI (NAN.round no longer supposed to fail) make sure BigDecimal test restores exception modes + make nan asserts 1.8 compat handle BigDecimal#round-ing for NaN (does not raise since 1.8.7 current MRI 2.2.3) update to latest jruby-openssl release: 0.9.12 update options library to latest 1.3 release re-format code - mislined line + unused variable & use indexOf(char) instead of str avoid expensive pattern compiling in arg processing loop (split() and replaceAll()) [nkf] handle 1.9.3 NKF library compatibility - returning encoding objects (see #338) avoid double convertToInteger and double NKF map lookup in EncodingService define NKF version constants (based on MRI 1.8.7 ... which is how NKF is compatible) make NKF shared public static map final correct ArgumentError message format to match MRI >= 1.9.3 (fixes #3346) be failsafe when trying to load META-INF/maven/org.yaml/snakeyaml/pom.properties fix generics (for master backport) to dispatch to correct CallableSelector override move CallableCache internal interface were it fits + add matching methods for arities invent a "true" null (java) callable cache for invokers + make get/put signature final refactor (internal) Java.__jcreate! impl to use same cache as RubyToJavaInvoker-s ... introducing an internal CallableCache interface to loose coupling in CallableSelector Use Cliff Click's high-scale collections instead of IntHashMap. ... Conflicts: core/pom.xml core/src/main/java/org/jruby/RubyFile.java core/src/main/java/org/jruby/RubyInstanceConfig.java core/src/main/java/org/jruby/RubyProc.java core/src/main/java/org/jruby/exceptions/RaiseException.java core/src/main/java/org/jruby/ext/bigdecimal/RubyBigDecimal.java core/src/main/java/org/jruby/ext/psych/PsychLibrary.java core/src/main/java/org/jruby/java/dispatch/CallableSelector.java core/src/main/java/org/jruby/java/invokers/RubyToJavaInvoker.java core/src/main/java/org/jruby/javasupport/Java.java core/src/main/java/org/jruby/runtime/Helpers.java core/src/main/java/org/jruby/runtime/backtrace/TraceType.java core/src/main/java/org/jruby/runtime/encoding/EncodingService.java core/src/main/java/org/jruby/util/cli/ArgumentProcessor.java default.build.properties lib/pom.rb lib/pom.xml maven/jruby-dist/pom.rb maven/jruby-dist/pom.xml maven/jruby-dist/src/main/assembly/jruby.xml maven/jruby-stdlib/pom.rb maven/jruby/src/it/runnable/spec/one_spec.rb pom.xml rakelib/test.rake spec/profiler/json_profile_printer_spec.rb spec/profiler/runtime_spec.rb test/externals/ruby1.9/bigdecimal/test_bigdecimal.rb test/pom.rb test/pom.xml test/test_big_decimal.rb test/test_file.rb test/test_pathname.rb