Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- % JAVA_HOME=/home/nahi/java/openjdk-hotspot-comp-20110901-plus-switchpoint jruby -v foo.rb
- jruby 1.7.0.dev (ruby-1.8.7-p330) (2011-09-02 ee230a0) (OpenJDK 64-Bit Server VM 1.7.0_02-ea) [linux-amd64-java]
- % cat foo.rb
- require 'set'
- s = Set.new
- 1.upto(50) { s & ['bar'] }
- % JAVA_HOME=/home/nahi/java/openjdk-hotspot-comp-20110901-plus-switchpoint jruby -Xinvokedynamic.all=true foo.rb
- MethodHandleStatics.java:102:in `newIllegalArgumentException': java.lang.IllegalArgumentException: target and fallback types must match: (ThreadContext,IRubyObject,IRubyObject,String,IRubyObject)IRubyObject != (JRubyCallSite,ThreadContext,IRubyObject,IRubyObject,String,IRubyObject)IRubyObject
- from MethodHandles.java:2166:in `misMatchedTypes'
- from MethodHandles.java:2150:in `guardWithTest'
- from SwitchPoint.java:173:in `guardWithTest'
- from InvokeDynamicSupport.java:660:in `updateInvocationTarget'
- from InvokeDynamicSupport.java:475:in `invocationFallback'
- from foo.rb:3:in `block_0$RUBY$__file__'
- from foo$block_0$RUBY$__file__:65535:in `call'
- from CompiledBlock.java:112:in `yield'
- from CompiledBlock.java:95:in `yield'
- from Block.java:130:in `yield'
- from RubyInteger.java:150:in `fixnumUpto'
- from RubyInteger.java:135:in `upto'
- from MethodHandleImpl.java:1162:in `invoke_L6'
- from MethodHandleImpl.java:1162:in `invoke_L6'
- from MethodHandle.java:566:in `invokeWithArguments'
- from InvokeDynamicSupport.java:560:in `invocationFallback'
- from foo.rb:3:in `__file__'
- from foo.rb:-1:in `load'
- from Ruby.java:715:in `runScript'
- from Ruby.java:708:in `runScript'
- from Ruby.java:615:in `runNormally'
- from Ruby.java:464:in `runFromMain'
- from Main.java:317:in `doRunFromMain'
- from Main.java:237:in `internalRun'
- from Main.java:203:in `run'
- from Main.java:187:in `run'
- from Main.java:167:in `main'
Add Comment
Please, Sign In to add comment