Skip to content
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

support for easy (Ruby) String to (Java) char conversion #2549

merged 2 commits into from Feb 5, 2015


Copy link

@kares kares commented Feb 2, 2015

currently one can 42.to_java(:char) to get a char (java.lang.Character) instance put it's certainly not the most obvious way to do it.

this PR adds support for converting strings of length 1 to (native) char objects e.g. 'A'.to_java(:char)

@enebo enebo added this to the JRuby 1.7.20 milestone Feb 5, 2015
enebo added a commit that referenced this pull request Feb 5, 2015
support for easy (Ruby) String to (Java) char conversion.  Don't see how this can break anyone realistically as a new feature.
@enebo enebo merged commit d827ef2 into jruby:jruby-1_7 Feb 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

Successfully merging this pull request may close these issues.

None yet

2 participants