[ANN] JRuby 1.1.6RC1 Released


#1

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:inaggregate_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


Blog: http://www.bloglines.com/blog/ThomasEEnebo
Email: removed_email_address@domain.invalid , removed_email_address@domain.invalid


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

#2

Great Job!


Eng Khaled al Habache


#3

On Dec 4, 2008, at 7:31 AM, Thomas E Enebo wrote:

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

<3

For #2 here, do the gems need to be on the classpath explicitly, or is
there some convention that’s used?

Logan B.
removed_email_address@domain.invalid
602 714 1148


#4

On Thu, Dec 4, 2008 at 11:09 AM, Logan B.
removed_email_address@domain.invalid wrote:

On Dec 4, 2008, at 7:31 AM, Thomas E Enebo wrote:

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

<3
For #2 here, do the gems need to be on the classpath explicitly, or is there
some convention that’s used?

The gem repository structure should be jarred up in a jar file, so
that the jar top level contains specifications and gems directories.
See this quick command-line demo:

http://gist.github.com/23085

/Nick


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

#5

On Thu, Dec 4, 2008 at 9:46 PM, Charles Oliver N. <
removed_email_address@domain.invalid> wrote:

<3

And FWIW, we’re looking for help and suggestions on making this even
easier. Patches welcome…suggestions welcome…and so on :slight_smile:

I recently try this feature but was enable to use gems like mongrel or
celerity (which contain .jar) into my .jar. It’s a bug or it’s just not
possible?


#6

On Fri, Dec 5, 2008 at 3:18 AM, Nicolas Mérouze
removed_email_address@domain.invalid wrote:

I recently try this feature but was enable to use gems like mongrel or
celerity (which contain .jar) into my .jar. It’s a bug or it’s just not
possible?

Interesting, I didn’t try that. It seems like a bug, though it may be
tricky to get working right. We’d need to somehow have jar files
within jar files available to the Java classpath. Not sure if that’s
possible? Any ideas?

/Nick


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

#7

Nick S. wrote:

The gem repository structure should be jarred up in a jar file, so
that the jar top level contains specifications and gems directories.
See this quick command-line demo:

http://gist.github.com/23085

And FWIW, we’re looking for help and suggestions on making this even
easier. Patches welcome…suggestions welcome…and so on :slight_smile:

  • Charlie

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

#8

Interesting, I didn’t try that. It seems like a bug, though it may be
tricky to get working right. We’d need to somehow have jar files
within jar files available to the Java classpath. Not sure if that’s
possible? Any ideas?

Maybe JRubyClassLoader can use the same strategy as the JarClassLoader
from the One-JAR project?

http://one-jar.sourceforge.net/
http://www-128.ibm.com/developerworks/java/library/j-onejar/

/skaar

||\ where in the | s_u_b_s_t_r_u_c_t_i_o_n
| | >=========== W.A.S.T.E. | genarratologies
|/|/ (_) is the wisdom | removed_email_address@domain.invalid


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

#9

And FWIW, we’re looking for help and suggestions on making this even
easier. Patches welcome…suggestions welcome…and so on :slight_smile:

I recently try this feature but was enable to use gems like mongrel or
celerity (which contain .jar) into my .jar. It’s a bug or it’s just not
possible?

Interesting, I didn’t try that. It seems like a bug, though it may be
tricky to get working right. We’d need to somehow have jar files
within jar files available to the Java classpath. Not sure if that’s
possible? Any ideas?

About 6 months ago I was experimenting with Alon Salant’s jrubygems
packaging system:

http://blog.carbonfive.com/2008/01/java/jrubygems-release

and was creating a single jar file which contained several gems and
then using this when deploying jruby via webstart.

I found a bug when using hpricot which was related to the fact that
hpricot also included a jar. The bug was resolved by Vladimir. See
end of comments here:

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

It related to the protection domain and the fact that the hpricot jar
was not signed.

After that was fixed I was able to use hpricot and other gems
packaged into a single jar.

The specific problem that I was having and Vladimir fixed may not
have much to do with the current issue – but the fact that the
jrubygems packaging did work should help point to a possible solution.

Alon last updated the jrubygems code in the svn repo at the end of
May to work with jruby 1.1.1.

I have not tested jrubygems much since then however.

FYI:
The svn repo for jrubygems is here:
https://svn.carbonfive.com/public/carbonfive/jruby/jrubygems/

I normally use git to deal with svn repos like this:

git svn clone --trunk=trunk --tags=tags
https://svn.carbonfive.com/public/carbonfive/jruby/jrubygems/
jrubygems.svn.git

and then use GitX, http://gitx.frim.nl/ (like gitk for MacOS X only)
to examine the changesets and the branches.


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email