You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using latest stable JRuby (9.1.7.0) these examples contain many compile-time errors, and nearly every single method call into the org.jruby APIs is deprecated.
I tried correcting this myself, but my attempts were frustrated by the fact that the documentation does not seem to be written for JRuby 9k at all (it mentions 1.7), and by the fact that most methods are not documented at all.
It is best practice in the software industry that if you're going to deprecate something, you should say what to use instead. And it's not always clear what to use instead when methods are deprecated in org.jruby.Ruby or org.jruby.javasupport.Java, because these classes contain an ungodly number of methods with very similar names, most of which are undocumented.
The text was updated successfully, but these errors were encountered:
FWIW the above approaches all generally try to hide org.jruby.Ruby, which we have never really blessed as a public API. The RedBridge API provides a reasonable direct API that we maintain, and the standard JSR-223 APIs provide a less direct but standard Java way to initialize and execute JRuby.
The Wiki page at https://github.com/jruby/jruby/wiki/JRubyAndJavaCodeExamples seems to be out of date.
Using latest stable JRuby (9.1.7.0) these examples contain many compile-time errors, and nearly every single method call into the org.jruby APIs is deprecated.
I tried correcting this myself, but my attempts were frustrated by the fact that the documentation does not seem to be written for JRuby 9k at all (it mentions 1.7), and by the fact that most methods are not documented at all.
It is best practice in the software industry that if you're going to deprecate something, you should say what to use instead. And it's not always clear what to use instead when methods are deprecated in org.jruby.Ruby or org.jruby.javasupport.Java, because these classes contain an ungodly number of methods with very similar names, most of which are undocumented.
The text was updated successfully, but these errors were encountered: