java.lang.invoke.WrongMethodTypeException: cannot explicitly cast MethodHandle(RubyObjectVar5)Object to (IRubyObject,IRubyObject[],Block)IRubyObject

GitHub | andreaseger | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 4148#246375124

    GitHub | 6 months ago | andreaseger
    java.lang.invoke.WrongMethodTypeException: cannot explicitly cast MethodHandle(RubyObjectVar5)Object to (IRubyObject,IRubyObject[],Block)IRubyObject

    Root Cause Analysis

    1. java.lang.invoke.WrongMethodTypeException

      cannot explicitly cast MethodHandle(RubyObjectVar5)Object to (IRubyObject,IRubyObject[],Block)IRubyObject

      at java.lang.invoke.MethodHandles.explicitCastArgumentsChecks()
    2. Java RT
      MethodHandles.explicitCastArguments
      1. java.lang.invoke.MethodHandles.explicitCastArgumentsChecks(MethodHandles.java:2038)
      2. java.lang.invoke.MethodHandles.explicitCastArguments(MethodHandles.java:2026)
      2 frames
    3. JRuby Main Maven Artifact
      InvokeSite.invoke
      1. com.headius.invokebinder.transform.Cast.up(Cast.java:43)
      2. com.headius.invokebinder.Binder.invoke(Binder.java:1110)
      3. com.headius.invokebinder.Binder.getField(Binder.java:1355)
      4. com.headius.invokebinder.Binder.getFieldQuiet(Binder.java:1376)
      5. org.jruby.ir.targets.Bootstrap.createAttrReaderHandle(Bootstrap.java:422)
      6. org.jruby.ir.targets.Bootstrap.buildAttrHandle(Bootstrap.java:381)
      7. org.jruby.ir.targets.InvokeSite.getHandle(InvokeSite.java:197)
      8. org.jruby.ir.targets.InvokeSite.invoke(InvokeSite.java:136)
      8 frames