JRuby 1.6.0.RC3 released

The JRuby community is pleased to announce the release of JRuby
1.6.0.RC3.

JRuby 1.6.0.RC3 is the last release candidate of JRuby 1.6.0.

JRuby 1.6.0 is the largest release of JRuby to date. This release
fixes hundreds of user issues and brings compatibility with Ruby 1.9.2
to a very high level. We have made Windows a primary supported
platform by adding it as a continuous integration platform, and JRuby
1.6 will provide Windows-based Ruby users with the best experience
yet. This release integrates experimental support for C extensions
based on Ruby’s C API. And as with all major releases, we have
improved stability and performance across the board in response to
real-world user input.

We are going to seriously try and make this our last RC before going
final.
Unless we find something devestatingly bad we will release 1.6.0 and
then
try and spin smaller point builds every 2-3 weeks to address reported
problems.

Notable changes since 1.6.0.RC2:

  • New readable backtrace format
  • Easier to embed in OSGi environment
  • Fixed regression which slowed down jar-based requires
  • Add native JFFI bits for x86_64 SunOS (Solaris)
  • More platforms with pre-built C extension support
  • New jruby-core and jruby-stdlib maven artifacts
  • More 1.9 compatibility fixes

Major Features:

  • Ruby 1.9.2 language and API compatibility

    • Not implemented Encoding::Converter, ripper
  • Improved Ruby call performance

  • Built-in profiler (–profile, --profile.graph)

  • RSpec no longer bundled

  • C Extension support (experimental)

  • RubyGems Maven support (preview)

  • Improved compatibility and user experience on Windows

  • jruby-complete.jar now includes 1.9 standard library

  • Embedding API refinements

  • Over 2000 commits and 265 issues resolved.

Issues fixed since 1.6.0.RC2

Key Summary

  • JRUBY-5491 jruby.reify.classes fails with optparse.rb (trinidad)
  • JRUBY-5502 RubyUNIXSocket#recvfrom overflows temporary buffer
  • JRUBY-5337 No such file to load – rack when booting JRuby 1.6.0RC1
    Rails app in Tomcat
  • JRUBY-5472 JRuby bash script no longer supports -X-C and similar
    options
  • JRUBY-5534 Performance issue with JRuby 1.6
  • JRUBY-5393 1.9: Can’t run debugger
  • JRUBY-5481 Marshal specs failing in 1.8 mode
  • JRUBY-5509 gem update_rubygems Fails on JRuby 1.5.3
  • JRUBY-5477 Caller stacks now include AbstractScript.java
  • JRUBY-4544 JRuby + Java Web Start gems can’t be loaded
  • JRUBY-5479 Socket#pack_sockaddr_in fails for port numbers greater than
    32383
  • JRUBY-5483 become_java! only works on the first subclass of a deep
    class hierarchy
  • JRUBY-5397 1.9: Make String#gsub encoding aware for ruby files
  • JRUBY-5503 Timeout::timeout makes IO#close block if there’s a #read
    present
  • JRUBY-5471 private method verify_mode= called with Bundler,
    net/https, jruby-openssl and RubyGems 1.5
  • JRUBY-2513 Stack traces for exceptions do not show the correct line
    number
  • JRUBY-5455 StringIO::ungetc can’t handle the “;” character correctly.
  • JRUBY-5405 FileStat chardev does not work on Solaris 10 x86
  • JRUBY-5463 Process.getpriority should raise an error with an invalid
    process type
  • JRUBY-5490 JSR223: propagate the exceptions
  • JRUBY-5487 Kernel#select’s read_array parameter is not respected
  • JRUBY-5484 Thread#status isn’t set to “sleep” when blocking on a
    TCPSocket#read
  • JRUBY-5473 Use of -Werror when compiling C extension support causes
    error on OpenBSD amd64
  • JRUBY-5480 jrubyc compile loop do … end error
  • JRUBY-5474 Compiling cext support on OpenBSD amd64 uses wrong
    directory
  • JRUBY-5469 Compiling cext support on OpenBSD puts the library under
    FreeBSD
  • JRUBY-5517 RUBYOPT is pulled from system env always, even for
    in-process child
  • JRUBY-4433 win: Writing to a pipe with closed source raises wrong
    exception
  • JRUBY-5501 When embedding jruby the FORCE compile option breaks
    constants
  • JRUBY-5281 jruby-complete jar not working from directory with spaces
  • JRUBY-4618 Backtick execution pauses the process
  • JRUBY-4469 Process.spawn seems to be completely broken
  • JRUBY-2167 Regexp parse errors should not be rescueable
  • JRUBY-5190 BigDecimal#to_f always returns 0.0 for large precisions
  • JRUBY-4446 [windows] File.grpowned? fails RubySpecs
  • JRUBY-5468 rb_time_new prototype doesn’t match definition
  • JRUBY-3431 String#encode (and decode?) missing from Ruby 1.9 String
  • JRUBY-5434 Random “Detected invalid array contents due to
    unsynchronized modifications with concurrent users” with Rails 3.0
  • JRUBY-1166 ‘public_instance_methods’ different from MRI within Rake
    (breaking Needle)
  • JRUBY-4156 1.9: jruby -S rake spec fails to find ‘spec/rake/spectask’
  • JRUBY-5447 maven gem support not working on windows?
  • JRUBY-4788 Stackoverflow when calling code from java with wrong
    parameters
  • JRUBY-4914 Process.spawn gives wrong pid in windows
  • JRUBY-5498 important JRuby 1.6 startup time regression launching
    JRuby script from JSR223 (12 sec -> 45 sec)
  • JRUBY-5554 Simplify jirb_swing script
  • JRUBY-5525 NPE Loading OSEnvironment on Windows
  • JRUBY-5552 Method#source_location is nil for methods defined via
    define_method or define_singleton_method
  • JRUBY-5528 JDBC Driver Unloading should be configurable
  • JRUBY-5550 Using shoulda prevents Rails from running tests in ruby1.9
    mode
  • JRUBY-5557 SnakeYAML dependency missing from Maven poms
  • JRUBY-5548 rb_call_super causes SystemStackError when used in both
    current class and ancestor class in a C extension
  • JRUBY-5545 JRuby 1.6RC 2 is missing Solaris 10 x86 64bit JFFI support
  • JRUBY-5541 Problem with java_import on Android (Ruboto)
  • JRUBY-5539 marshal fails in 1.9 with strings
  • JRUBY-5532 IO.foreach: Can’t convert Hash into String
  • JRUBY-5531 Process.spawn(“ruby”) gives garbage PID
  • JRUBY-5514 Errno::EBADF is sometimes raised instead of IOError when
    TCPSocket#readline is called after TCPSocket#close
  • JRUBY-5515 Digest::SHA2 NameError in (1.6.RC2 – 1.9 mode)
  • JRUBY-5384 org.jruby.embed.osgi suport in OSGi for ruby code and
    java code loaded from OSGi bundles
  • JRUBY-5522 system("@command") should work in windows
  • JRUBY-2519 Dir instance object caches directory contents

On Mar 8, 2011, at 11:37 AM, Thomas E Enebo wrote:

platform by adding it as a continuous integration platform, and JRuby
1.6 will provide Windows-based Ruby users with the best experience
yet. This release integrates experimental support for C extensions
based on Ruby’s C API. And as with all major releases, we have
improved stability and performance across the board in response to
real-world user input.

Great work, everyone! This is the best Ruby runtime yet.

cr

WooHoo!
I’ve been using RC1 and RC2 with trinidad on our dev servers and it’s
excellent with no major dramas.
I’ve just switched to RC3 now.
Forgot to gem install trinidad_logging_extension and it broke of course,
but it gave me a chance to see the backtrace layout:

GBHjr$ jruby -S trinidad --config config/trinidad.yml --threadsafe
LoadError: no such file to load – trinidad_logging_extension
require at org/jruby/RubyKernel.java:1037
require at
/opt/jruby-1.6.0.RC3/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29
load_extension at
/opt/jruby-1.6.0.RC3/lib/ruby/gems/1.8/gems/trinidad-1.0.5/bin/…/lib/trinidad/extensions.rb:43
extension at
/opt/jruby-1.6.0.RC3/lib/ruby/gems/1.8/gems/trinidad-1.0.5/bin/…/lib/trinidad/extensions.rb:37
configure_server_extensions at
/opt/jruby-1.6.0.RC3/lib/ruby/gems/1.8/gems/trinidad-1.0.5/bin/…/lib/trinidad/extensions.rb:16
each at org/jruby/RubyHash.java:1167
configure_server_extensions at
/opt/jruby-1.6.0.RC3/lib/ruby/gems/1.8/gems/trinidad-1.0.5/bin/…/lib/trinidad/extensions.rb:15
load_tomcat_server at
/opt/jruby-1.6.0.RC3/lib/ruby/gems/1.8/gems/trinidad-1.0.5/bin/…/lib/trinidad/server.rb:45
initialize at
/opt/jruby-1.6.0.RC3/lib/ruby/gems/1.8/gems/trinidad-1.0.5/bin/…/lib/trinidad/server.rb:23
(root) at
/opt/jruby-1.6.0.RC3/lib/ruby/gems/1.8/gems/trinidad-1.0.5/bin/trinidad:9
load at org/jruby/RubyKernel.java:1062
(root) at /opt/jruby-1.6.0.RC3/bin/trinidad:19

Very nice.

Kimbo

On 09/03/2011, at 3:37 AM, Thomas E Enebo wrote:

The JRuby community is pleased to announce the release of JRuby 1.6.0.RC3.

Should the binary .zip and .tar.gz’s include both the jffi and cext
shared libs? I only see the jffi’s included. The cext’s also appear to
be missing when I browse the windows installer .exe with 7-zip.

Hey, there’s a lib\native\x86_64-SunOS\libjffi-1.0.so in the installer
.exe :wink:

Jon


blog: http://jonforums.github.com/
twitter: @jonforums

Very nice: thanks again for this release.

It feels slightly faster on windows vs the previous RC2 release, using
jruby-jars approach.

The interesting bit is when using --1.9 switch with -b (to get the
runtime). I get at least around 500mn reduced runtime, when with RC2
it was barely around 300ms :slight_smile:

My swing clients and Ramaze applications are not broken in anyway.

Thanks again.
Christian

On Fri, Mar 11, 2011 at 2:07 PM, Charles Oliver N.
[email protected] wrote:

On Wed, Mar 9, 2011 at 3:42 PM, Jon [email protected] wrote:

Should the binary .zip and .tar.gz’s include both the jffi and cext shared
libs? I only see the jffi’s included. The cext’s also appear to be missing when I
browse the windows installer .exe with 7-zip.

Ahh yeah, they should be. Can you toss a block against 1.6 to get them
in/confirm they’re in? They should definitely be present.

Er, I meant “toss a blocker bug into JIRA against 1.6”.

  • Charlie

On Wed, Mar 9, 2011 at 3:42 PM, Jon [email protected] wrote:

Should the binary .zip and .tar.gz’s include both the jffi and cext shared libs?
I only see the jffi’s included. The cext’s also appear to be missing when I
browse the windows installer .exe with 7-zip.

Ahh yeah, they should be. Can you toss a block against 1.6 to get them
in/confirm they’re in? They should definitely be present.

Hey, there’s a lib\native\x86_64-SunOS\libjffi-1.0.so in the installer .exe :wink:

Hard to believe it took so long to get that in :slight_smile:

  • Charlie

Should the binary .zip and .tar.gz’s include both the jffi and cext shared
libs? I only see the jffi’s included. The cext’s also appear to be missing when I
browse the windows installer .exe with 7-zip.

Ahh yeah, they should be. Can you toss a block against 1.6 to get them
in/confirm they’re in? They should definitely be present.

http://jira.codehaus.org/browse/JRUBY-5580

Is build.xml the right place for the patch if I get all fired up to
abuse ant? I’ve not been tracking the pom updates, but it looks like
build.xml is still the primary build script…

Hey, there’s a lib\native\x86_64-SunOS\libjffi-1.0.so in the installer .exe :wink:

Hard to believe it took so long to get that in :slight_smile:

Ah, steeled persistence is everything with leading-edge tech…sadly, we
Windows users have failed to grasp how important it is to have this .so
:wink:

Jon


blog: http://jonforums.github.com/
twitter: @jonforums

On Fri, Mar 11, 2011 at 2:29 PM, Jon [email protected] wrote:

Hey, there’s a lib\native\x86_64-SunOS\libjffi-1.0.so in the installer .exe
:wink:

Hard to believe it took so long to get that in :slight_smile:

Ah, steeled persistence is everything with leading-edge tech…sadly, we Windows
users have failed to grasp how important it is to have this .so :wink:

Our installer software has us exclude files in this dir rather than
include files. I will add the exclusion for it from the Windows
installer :slight_smile:

-Tom

http://xircles.codehaus.org/manage_email


blog: http://blog.enebo.com twitter: tom_enebo
mail: [email protected]

On Wed, Mar 9, 2011 at 2:37 AM, Christian MICHON
[email protected] wrote:

My swing clients and Ramaze applications are not broken in anyway.

Thanks for the confirmation :slight_smile: Looks like we’ll have no problem
releasing 1.6 GA next week!

  • Charlie

On Tue, Mar 8, 2011 at 4:31 PM, Kimberley Scott
[email protected] wrote:

it gave me a chance to see the backtrace layout:

Very nice.

Yeah, such a silly little thing, but for some people it means the world
:slight_smile:

Note there are two other useful backtrace styles:

-Xbacktrace.style=mri (self explanatory)
-Xbacktrace.style=raw (shows all Java/JVM elements…helpful for
finding a JRuby bug or locating the source of an exception coming from
some library)

  • Charlie

On Fri, Mar 11, 2011 at 2:29 PM, Jon [email protected] wrote:

Should the binary .zip and .tar.gz’s include both the jffi and cext shared
libs? I only see the jffi’s included. The cext’s also appear to be missing when I
browse the windows installer .exe with 7-zip.

Ahh yeah, they should be. Can you toss a block against 1.6 to get them
in/confirm they’re in? They should definitely be present.

http://jira.codehaus.org/browse/JRUBY-5580

Is build.xml the right place for the patch if I get all fired up to abuse ant?
I’ve not been tracking the pom updates, but it looks like build.xml is still the
primary build script…

For the zip and tarball, yes. Tom will patch the Windows installer
though.

  • Charlie

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs