Skip to content

Choose strategy for using Java 7 classes vs. Ruboto #1863

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

Closed
donv opened this issue Jul 27, 2014 · 1 comment
Closed

Choose strategy for using Java 7 classes vs. Ruboto #1863

donv opened this issue Jul 27, 2014 · 1 comment
Labels
Milestone

Comments

@donv
Copy link
Member

donv commented Jul 27, 2014

Master currently fails on Android with the following exception:

W/System.err( 9139): Caused by: java.lang.NoClassDefFoundError: java.nio.channels.SeekableByteChannel
W/System.err( 9139):    at org.jruby.util.io.ChannelFD.initChannelTypes(ChannelFD.java:132)
W/System.err( 9139):    at org.jruby.util.io.ChannelFD.<init>(ChannelFD.java:32)
W/System.err( 9139):    at org.jruby.util.io.OpenFile.setChannel(OpenFile.java:189)
W/System.err( 9139):    at org.jruby.RubyIO.prepIO(RubyIO.java:234)
W/System.err( 9139):    at org.jruby.RubyIO.prepStdio(RubyIO.java:187)
W/System.err( 9139):    at org.jruby.RubyGlobal.createGlobals(RubyGlobal.java:193)
W/System.err( 9139):    at org.jruby.Ruby.init(Ruby.java:1248)
W/System.err( 9139):    at org.jruby.Ruby.newInstance(Ruby.java:316)

While parts of java.nio is included on Android, it seems java.nio.channels.SeekableByteChannel is not:

http://developer.android.com/reference/java/nio/channels/package-summary.html

While I am sure we all want the fastest possible desktop/server JRuby, I would hate for JRuby 1.7.x to be the last JRuby to run on Android.

Dalvik and ART do offer JNI, there is Linux below, and we can relocate Java classes like SeekableByteChannel to "user space" packages like jruby.java.nio.channels.SeekableByteChannel.

What do you think?

@donv donv added this to the JRuby 9000 milestone Jul 27, 2014
@donv donv added the core label Jul 27, 2014
@enebo enebo modified the milestone: JRuby 9.0.0.0 Jul 14, 2015
@kares
Copy link
Member

kares commented Jun 11, 2018

this is defunct by now, 9.2 only supports Java 8 and Android has also caught up with Java

@kares kares closed this as completed Jun 11, 2018
@kares kares added this to the Won't Fix milestone Jun 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants