Guest User

Untitled

a guest
Jan 23rd, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1.  
  2. % JAVA_HOME=/home/nahi/java/openjdk-hotspot-comp-20110901-plus-switchpoint jruby -v foo.rb
  3. 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]
  4. % cat foo.rb
  5. require 'set'
  6. s = Set.new
  7. 1.upto(50) { s & ['bar'] }
  8. % JAVA_HOME=/home/nahi/java/openjdk-hotspot-comp-20110901-plus-switchpoint jruby -Xinvokedynamic.all=true foo.rb
  9. 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
  10. from MethodHandles.java:2166:in `misMatchedTypes'
  11. from MethodHandles.java:2150:in `guardWithTest'
  12. from SwitchPoint.java:173:in `guardWithTest'
  13. from InvokeDynamicSupport.java:660:in `updateInvocationTarget'
  14. from InvokeDynamicSupport.java:475:in `invocationFallback'
  15. from foo.rb:3:in `block_0$RUBY$__file__'
  16. from foo$block_0$RUBY$__file__:65535:in `call'
  17. from CompiledBlock.java:112:in `yield'
  18. from CompiledBlock.java:95:in `yield'
  19. from Block.java:130:in `yield'
  20. from RubyInteger.java:150:in `fixnumUpto'
  21. from RubyInteger.java:135:in `upto'
  22. from MethodHandleImpl.java:1162:in `invoke_L6'
  23. from MethodHandleImpl.java:1162:in `invoke_L6'
  24. from MethodHandle.java:566:in `invokeWithArguments'
  25. from InvokeDynamicSupport.java:560:in `invocationFallback'
  26. from foo.rb:3:in `__file__'
  27. from foo.rb:-1:in `load'
  28. from Ruby.java:715:in `runScript'
  29. from Ruby.java:708:in `runScript'
  30. from Ruby.java:615:in `runNormally'
  31. from Ruby.java:464:in `runFromMain'
  32. from Main.java:317:in `doRunFromMain'
  33. from Main.java:237:in `internalRun'
  34. from Main.java:203:in `run'
  35. from Main.java:187:in `run'
  36. from Main.java:167:in `main'
Add Comment
Please, Sign In to add comment