[ANN] JRuby 1.1.6RC1 Released

T

Thomas Enebo

The JRuby community is pleased to announce the release of JRuby 1.1.6RC1!

Homepage: http://www.jruby.org/
Download: http://dist.codehaus.org/jruby/

JRuby 1.1.6RC1 is the first release candidate for our sixth point
release of
JRuby 1.1. The fixes in this release are primarily obvious compatibility
problems and performance enhancements. Our goal is to put out point
releases
more frequently for the next several months (about 3-4 weeks a
release). We
want a more rapid release cycle to better address issues brought up by
users
of JRuby. If we find no major problems with 1.1.6RC1 we will release
the final
version of 1.1.6 early next week.

****Please try your apps against 1.1.6RC1 ASAP and report problems****

Highlights:
- Additional Ruby 1.9 support (via --1.9)
- Full 1.9 parser
- Most core 1.9 methods/libraries/classes
- An evergrowing list of dead IO references bug fixed
- Much faster Array.sort
- Run gems out of jar files without having to unpack them.
- Store gem repositories in jars and load them via the classpath.
- Improved JavaEmbedUtils for embedders
- 67 bugs fixed since 1.1.5

Key Summary
JRUBY-3131 obj.send :binding does not set the binding's 'self' to obj
JRUBY-3188 NPE when loading file in tzinfo (used by ActiveSupport)
JRUBY-3181 [PATCH] Stack trace lost when re-raising an exception
JRUBY-3197 Fix "undefined method `uid' for nil:NilClass" problem
with Rubygems 1.3.1
JRUBY-3126 Allow Rubygems to be loaded and used from within jar files
JRUBY-3141 Array index error in JCodings running latest
String#rindex specs
JRUBY-3135 RubyException doesn't define to_str
JRUBY-3118 Creating a subclass of MatchData that's instantiable
blows up because there's no allocator
JRUBY-3162 Dir.glob does not like encodings, and will fail when used
with File.expand_path
JRUBY-3108 a REXML XPath query fails to run correctly
JRUBY-3132 String.split is broken
JRUBY-441 Java integration code does not report errors well
JRUBY-1801 Support Ruby 1.9 stabby lambda syntax
JRUBY-2183 handling method_missing is slower than in MRI
JRUBY-2279 JRuby's Signal pollutes Kernel namespace with
signal-specific constants
JRUBY-2209 An Interrupt wipes out END {} blocks
JRUBY-2290 form.datetime_select not working with IE in 1.1RC2 (but
does with Firefox)
JRUBY-2798 File.open rubyspec failure on Mac OS X, Soylatte
JRUBY-2546 Using reflection to set a String on a field results in an
error
JRUBY-3122 Arity.required(3) ends up reporting the wrong arity
JRUBY-2746 jruby -S flag does not search PATH, not support relative
locations within PATH
JRUBY-3182 Symlink doesn't work with relative path destinations and
Dir.chdir
JRUBY-3104 Ruby 1.9 parser support
JRUBY-3185 Ruby.descriptors was leaking endless WeakReferences (with
Integer key).
JRUBY-3111 JRuby does not handle '@' sign in YAML file correctly.
JRUBY-3191 Including same Java interface twice causes ClassFormatError
JRUBY-3192 Return type coercion to java interfaces broken by new JI
JRUBY-3134 Define RubyRange.min/max
JRUBY-3078 require should be made either threadsafe or guaranteed to
run the discovered file exactly once
JRUBY-2852 rcov.rb:654:in `aggregate_data': NilClass can't be
coerced into Fixnum (TypeError) when running jruby -S rake spec:rcov
JRUBY-3138 import 'java.lang' and similar break due to missing
PackageSearch class
JRUBY-3117 Constant lookup from method inside class ::Object is
incorrect
JRUBY-3145 Module#include detects cyclic includes
JRUBY-3189 java.lang.Iterable should have an each method
JRUBY-3161 java interface in base class cannot implement in derived
class
JRUBY-3176 Thread#wakeup doesn't wake up a sleeping thread
JRUBY-3195 jruby-openssl fails to load but reports no error
JRUBY-2613 Readline.readline wants two arguments
JRUBY-2834 More than 50 RubySpec failures for ARGF
JRUBY-3149 Float#to_s returns a string representation of self,
possibly Nan, -Infinity, +Infinity
JRUBY-3198 String#slice! not working correctly when used with string
read from file
JRUBY-3107 Ability to get extra position information from
DefaultRubyParser
JRUBY-2780 RegexpError: target of repeat operator is invalid
JRUBY-2380 Thread.list has a race condition
JRUBY-3155 TCPSocket#puts block when the socket is waiting in read
JRUBY-2948 Exceptions do not cut off at binding evals after change
reported in JRUBY-2945
JRUBY-3133 'jgem update' causes: java.lang.AssertionError:
UpdateCommand is not interned
JRUBY-2224 jirb breaks method_added for classes
JRUBY-2703 Indexed methods are no longer supported, and options and
code related to them should be removed or deprecated.
JRUBY-2799 Need some mechanism to call masked java methods (initialize)
JRUBY-3156 Import of Java classes in "main" object has no effect
JRUBY-2198 Array#sort is slower than MRI
JRUBY-1489 Adding encapulated parse methods for external uses, such
as JSR223 API implementation
JRUBY-2602 Lots of Readline::HISTORY rubyspec failures
JRUBY-3112 Some Ruby instances are not roundtripping from Ruby to
Java and back
JRUBY-3210 the ./ behavior with load is not MRI compatible
JRUBY-3173 require in 1.1.5 prefers files in the current directory
despite loadpath (even with "." removed)
JRUBY-3130 JRuby selects wrong static method on Java class
JRUBY-3140 Const lookup failures in precompiled specs
JRUBY-1476 jruby.home extraction / jar-complete / content mismatch
JRUBY-2301 JRuby script would work when java is installed but
JAVA_HOME not set
JRUBY-2028 LocalJumpError is displayed when a block is invoked in a
java thread.
JRUBY-2210 permissions on $JRUBY_HOME/lib/ruby/gem/1.8 not wide enough
JRUBY-3201 JRubyApplet failing when using TrivialFacade.
JRUBY-1133 $KCODE is ignored when multibyte character is used inside
regular expression
JRUBY-3209 "java -jar jruby-complete.jar -S jirb" does not run if
~/.jruby exists
JRUBY-1181 Rake batch file for Windows environments
 
J

Joe Wölfel

- Run gems out of jar files without having to unpack them.
- Store gem repositories in jars and load them via the classpath.

The ability to run gems & gem repositories out of jar files sounds =20
really useful. Is that documented anywhere? Do you just put the =20
gems/repositories anywhere in the jar?=20
=20=
 
S

Stefan Lang

2008/12/4 Thomas Enebo said:
The JRuby community is pleased to announce the release of JRuby 1.1.6RC1!

Homepage: http://www.jruby.org/
Download: http://dist.codehaus.org/jruby/

JRuby 1.1.6RC1 is the first release candidate for our sixth point release of
JRuby 1.1. The fixes in this release are primarily obvious compatibility
problems and performance enhancements. Our goal is to put out point
releases
more frequently for the next several months (about 3-4 weeks a release). We
want a more rapid release cycle to better address issues brought up by users
of JRuby. If we find no major problems with 1.1.6RC1 we will release the
final
version of 1.1.6 early next week.

****Please try your apps against 1.1.6RC1 ASAP and report problems****

Highlights:
- Additional Ruby 1.9 support (via --1.9)
- Full 1.9 parser
- Most core 1.9 methods/libraries/classes

Trying to run jirb in 1.9 mode:

$ bin/jruby --1.9 bin/jirb
/home/stefan/Ruby/ruby/jruby-1.1.6RC1/lib/ruby/1.8/irb/extend-command.rb:152:in
`install_alias_method': undefined method `id2name' for nil:NilClass
(NoMethodError)
from
/home/stefan/Ruby/ruby/jruby-1.1.6RC1/lib/ruby/1.8/irb/extend-command.rb:179:in
`extend_object'
from
/home/stefan/Ruby/ruby/jruby-1.1.6RC1/lib/ruby/1.8/irb/extend-command.rb:178:in
`each'
from
/home/stefan/Ruby/ruby/jruby-1.1.6RC1/lib/ruby/1.8/irb/extend-command.rb:178:in
`extend_object'
from
/home/stefan/Ruby/ruby/jruby-1.1.6RC1/lib/ruby/1.8/irb.rb:93:in
`initialize'
from
/home/stefan/Ruby/ruby/jruby-1.1.6RC1/lib/ruby/1.8/irb.rb:59:in
`start'
from bin/jirb:19

Are these 1.8 directories intentionally in the load path?

$ bin/jruby --1.9 -e 'puts $LOAD_PATH'
/home/stefan/Ruby/ruby/jruby-1.1.6RC1/lib/ruby/site_ruby/1.9
/home/stefan/Ruby/ruby/jruby-1.1.6RC1/lib/ruby/site_ruby
/home/stefan/Ruby/ruby/jruby-1.1.6RC1/lib/ruby/1.9
/home/stefan/Ruby/ruby/jruby-1.1.6RC1/lib/ruby/1.9/java
/home/stefan/Ruby/ruby/jruby-1.1.6RC1/lib/ruby/site_ruby/1.8
/home/stefan/Ruby/ruby/jruby-1.1.6RC1/lib/ruby/site_ruby
/home/stefan/Ruby/ruby/jruby-1.1.6RC1/lib/ruby/1.8
/home/stefan/Ruby/ruby/jruby-1.1.6RC1/lib/ruby/1.8/java
lib/ruby/1.8
 
H

Hermann Kurz

Hi,
****Please try your apps against 1.1.6RC1 ASAP and report problems****

thanks for your great work. JRuby is an excellent Ruby implementation
and works very good in a java infrastructure. We are deploying some
rails applications as .war via warbler without a hitch.


I have an an application which provides a SOAP webservice via
actionwebservice under Rails 2.0.4.

Rails is frozen into /vendor:

- The application runs great under MRI and under jruby 1.1.4.


- Under jruby 1.1.5 WEBrick starts up, but there is an error, if i try
to generate WSDL:

"TypeError can't convert MissingSourceFile into String"

i think, this is addressed in http://jira.codehaus.org/browse/JRUBY-3135


- under 1.1.6RC1 WEBrick doesn't start up, i get this error immediately:

.../jruby-1.1.6RC1/bin/jruby -S script/server -p4000
script/server:1: undefined method `script' for JRuby::Commands:Class
(NoMethodError)



Hermann
 
N

Nick Sieger

The ability to run gems & gem repositories out of jar files sounds really
useful. Is that documented anywhere? Do you just put the gems/repositor= ies
anywhere in the jar?

Not documented yet, sorry. I plan to write up a quick blog post about
it around the time that 1.1.6 comes out. Basically, the process is
shown in action here:

http://gist.github.com/23085

Basically, the root of a gem repository jar file should contain the
"gems" and "specifications" directories and their contents.

Feel free to ask questions.

/Nick
 
C

Charles Oliver Nutter

Stefan said:
Trying to run jirb in 1.9 mode:

I think Tom is going to patch irb to work correctly for 1.1.6 final. In
fact, I think I just saw some commits go by :)
Are these 1.8 directories intentionally in the load path?

I've got 1.9 support wired up to put 1.9 stdlib ahead of 1.8 in load
path, until we get full 1.9 stdlib installed...
Looking further, there are no 1.9 library directories.
Are they simply missing from the binary release tarball?

We haven't incorporated the full stdlib yet, because we need to update
1.8 stdlib as well. We also didn't figure it would be useful to pull in
1.9 stdlib just yet since 1.9.1 final is only a couple weeks away. We'll
have a 1.1.7 after the 1st that includes updates of both stdlibs.

- Charlie
 
C

Charles Oliver Nutter

Hermann said:
- under 1.1.6RC1 WEBrick doesn't start up, i get this error immediately:

../jruby-1.1.6RC1/bin/jruby -S script/server -p4000
script/server:1: undefined method `script' for JRuby::Commands:Class
(NoMethodError)

Just run "jruby script/server". -S is only to look in jruby's bin dir or
in PATH and run the resulting script.

File a bug for -S doing that though...it's a weirdness we've not yet fixed.

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

- Charlie
 
H

Hermann Kurz

Charles said:
Just run "jruby script/server". -S is only to look in jruby's bin dir or
in PATH and run the resulting script.

Works like a charm - thank you!


Hermann
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,985
Messages
2,570,199
Members
46,766
Latest member
rignpype

Latest Threads

Top