-
-
Notifications
You must be signed in to change notification settings - Fork 925
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java_send will not invoke a method taking a CharSequence #2881
Comments
I will be fixing this (or have fixed it) for JRuby 1.7.20, but for interfaces you need to add .java_class so we pass the class through. The modules we set up for interfaces do not automatically coerce to java.lang.Class (yet). |
Oh, I just saw @kares took a stab at this...but perhaps it is not finished? |
@headius yeah, was trying to get a base 🍏 travis-ci to make sure I test properly ... and it finally is! the fix here is to add |
Question for you guys... The fix seems to imply that my "getting extreme" and opening Ruby's string class to mixin CharSequence will be required. Is this the case, or is Ruby's String going to be coercible to a CharSequence? |
@cshupp1 it won't be required just take a look at the commit there's a piece of your problematic code |
I see it! Thanks! |
Consider the following in irb:
yields I am Here as expected.
both yield
Lets get extreme and open Ruby's String as follows:
The code "SomeString".toString behaves as expected now, but:
Still fails :-(
BTW:
The text was updated successfully, but these errors were encountered: