Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.7.0.pre1
-
Fix Version/s: JRuby 1.7.0.pre2
-
Component/s: Java Integration
-
Labels:None
-
Number of attachments :
Description
system ~/projects/jruby/tmp $ jruby -X+C -rjava -e "5 == java.lang.Integer.new(5)" Integer.java:52:in `compareTo': java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer from NativeMethodAccessorImpl.java:-2:in `invoke0' from NativeMethodAccessorImpl.java:57:in `invoke' from DelegatingMethodAccessorImpl.java:43:in `invoke' from Method.java:601:in `invoke' from JavaMethod.java:455:in `invokeDirectWithExceptionHandling' from JavaMethod.java:316:in `invokeDirect' from InstanceMethodInvoker.java:59:in `call' from MethodHandle.java:566:in `invokeWithArguments' from InvocationLinker.java:166:in `invocationFallback' from file:/Users/headius/projects/jruby/lib/jruby.jar!/jruby/java/java_ext/java.lang.rb:29:in `method__6$RUBY$\=\^=\_' from Users$headius$projects$jruby$lib$jruby_dot_jar$jruby$java$java_ext$java_dot_lang$method__6$RUBY$\=\^=\_:-1:in `call' from Users$headius$projects$jruby$lib$jruby_dot_jar$jruby$java$java_ext$java_dot_lang$method__6$RUBY$\=\^=\_:-1:in `call' from RuntimeHelpers.java:2686:in `invokedynamic' from RubyComparable.java:117:in `callCmpMethod' from RubyComparable.java:108:in `op_equal19' from RubyComparable$INVOKER$s$1$0$op_equal19.gen:-1:in `call' from RuntimeHelpers.java:2686:in `invokedynamic' from RubyNumeric.java:878:in `op_num_equal' from RubyFixnum.java:825:in `op_equalOther' from RubyFixnum.java:818:in `op_equal19' from MethodHandle.java:566:in `invokeWithArguments' from InvocationLinker.java:166:in `invocationFallback' from -e:1:in `__file__' from -e:-1:in `load' from Ruby.java:778:in `runScript' from Ruby.java:771:in `runScript' from Ruby.java:648:in `runNormally' from Ruby.java:497:in `runFromMain' from Main.java:376:in `doRunFromMain' from Main.java:265:in `internalRun' from Main.java:231:in `run' from Main.java:215:in `run' from Main.java:195:in `main'
This appears to be newish on master only.