JRuby 1.7.0.preview2 released

Ruby 1.7.0.preview2 Released
Tuesday, August 07 2012

The JRuby community is pleased to announce the release of JRuby
1.7.0.preview2.

Homepage: http://www.jruby.org/
Download: http://www.jruby.org/download

This is the second preview release of JRuby 1.7. The JRuby 1.7 release
series represents a tremendous amount of work by dozens of
contributors, and there are improvements in every subsystem. Users of
highly-concurrent applications will see improvements in throughput and
raw parallelism. And we have upped our compatibility level to match
Ruby 1.9.3.

We have opted for another preview cycle due to the amount of reports
about improperly working transcoding support. We have greatly improved
transcoding of IO and users should be much happier with
1.7.0.preview2.

Due to some issues with Java 7s invokedynamic support we decided to
disable the support by default. It will be turned back on when Java 7
fixes those issues. See http://wiki.jruby.org/PerformanceTuning

Please, please, please test your applications against 1.7.0.preview2.
We want to make 1.7.0 a rock solid release and your contribution is
extremely helpful.
Notable Changes:

1.9.3 is now our default runtime mode (1.8 is needed for 1.8.7 

support)
Many 1.9.x compatibility fixes
invokedynamic has been disabled for now on Java 7 (still on by
default on Java 8)
Performance and concurrency improvements
Java 5 support dropped (Java 6+ required)
Several IO transcoding issues
YAML now encodes scalars properly instead of using Java locale
Kernel#exec now does a true native exec on all platforms
Improvements and fixes to Java integration and embedding
Fix several native support issues on Solaris
122 issues resolved

Issues resolved:

JRUBY-5053 memory leak in rubygems

JRUBY-5785 BUG: invoking UndefinedMethod.call

JRUBY-5899 NotImplementedError: Process::Status#exited? not 

implemented

JRUBY-5939 [:space:] does not match unicode 0x3000: fullwidth 

whitespace

JRUBY-6056 High CPU Loop with parallel Etc.group iterrations

JRUBY-6121 Local variables cross eval scopes

JRUBY-6124 Yielding no values to a block gives

ArrayIndexOutOfBoundsException

JRUBY-6125 Yielding a single object to a block with |a, b|

arguments does not call #to_ary

JRUBY-6181 SSH Agent forwarding does not work with jRuby (which

lets capistrano ssh-deployments fail)

JRUBY-6253 IBM JVM rejects class/method names with #, as in our

JIT recently.

JRUBY-6286 jnr-posix WindowsHelpers.isBatch Always Returns False

JRUBY-6299 Slow perf in String#split or #join on 1.9 mode

JRUBY-6317 YAML cant parse some valid unicode characters

JRUBY-6330 Performance degradation in Time.strptime with 

invokedynamic

JRUBY-6376 File.stat.size on Solaris: ridiculously large results

JRUBY-6395 Coerce Fixnum to Number

JRUBY-6424 Allow java_signature to generate throws clause for

methods/constructors

JRUBY-6428 Regression: Float#to_d doesnt work on 1.7 (did in 1.6)

JRUBY-6459 JRuby head causes rack response to change behaviour

JRUBY-6465 out of memory building c extensions

JRUBY-6481 AccessControl exceptions attempting to create JRuby

instances in applet

JRUBY-6493 Calling dynamically defined method throws

Java::JavaLang::NullPointerException or returns nil without executing
method body

JRUBY-6494 File#directory? always returns false on Solaris

JRUBY-6495 java.nio.ByteBuffer.wrap throws

java.lang.IndexOutOfBoundsException

JRUBY-6514 java.lang.NullPointerException when using

ScriptingCotainer from an Appletjava.lang.NullPointerException

JRUBY-6521 With Java 7, nailgun client cannot list local gems more 

than once

JRUBY-6525 FFI bug with Solaris JRuby >=1.6.6

JRUBY-6532 ftp.nlst, ftp.ls doesnt work on JDK 7u3

JRUBY-6548 REXML error when reading files containing ISO-8859-1 

encoded data

JRUBY-6552 File.directory? does not work under 1.9 mode on Solaris

JRUBY-6553 Application continues running after throwing out of

memory exception in Thread.

JRUBY-6613 special characters like umlauts make Kramdown hang

(works with MRI Rubies)

JRUBY-6615 File.open ignores specified external encoding

JRUBY-6638 Multicast UDPSocket send does not work with host and port

JRUBY-6639 Marshal.load takes forever when deserializing Rails

unicode db in WEBrick

JRUBY-6658 Problem when setting up an autoload entry, defining a

class via require, then redefining the autoload entry

JRUBY-6663 `jruby -S bundle exec rails c` fails with Bundler:

command not found

JRUBY-6666 Open3.popen3 failing due to missing handling for [path,

argv[0]] array

JRUBY-6674 Inconsistent java method/signature choosing depending

on java version/platform

JRUBY-6677 open(|something, w) does not open in write mode

JRUBY-6678 compilation fails for CC=ccache gcc

JRUBY-6679 Encoding.default_external discrepancy between JRuby and 

MRI

JRUBY-6682  jgem search -r ak  causes exceptions.

JRUBY-6685 Encoding problem when using JRuby 1.7.0.preview1 +

Nokogiri under Windows

JRUBY-6686 JRuby/RSolr - BLOCKED on

org.jruby.internal.runtime.methods.InvocationMethodFactory.getCompiledMethod

JRUBY-6688 Tempfile#{unlink,delete} should warn or actualy do 

something

JRUBY-6693 Get the terminal width with JRuby

JRUBY-6694 Invalid byte sequence in utf-8

JRUBY-6697 JRuby 1.7 should report 1.9 as default

JRUBY-6701 Net::HTTP ignore JSE defined HTTP Proxy options

JRUBY-6702 File.utime does not check file permissions

JRUBY-6703 Remove Enumerable#join from 1.9 mode

JRUBY-6705 Error during gem loading in Rails: ActiveRecord is not

missing constant Base

JRUBY-6706 Collections.shuffle works incorreclty on Ruby arrays

JRUBY-6707 JRuby master (1.7) is LOT slower than jRuby 1.6.7 & MRI

in generating tictactoe game tree

JRUBY-6708 NullPointerException instead of proper exceptions output

JRUBY-6709 ffi problems on 1.7.0.preview1?

JRUBY-6711 JRuby 1.7 needs a formal release of jline

JRUBY-6713 win32/registry.rb warning

JRUBY-6714 require java in verbose mode causes circular dependency 

warning

JRUBY-6715 jruby-openssl cert validation fails on windows

JRUBY-6717 jruby1.7.0preview1 doesnt work on Windows with jdk7

JRUBY-6718 crash with java.lang.invoke.WrongMethodTypeException

JRUBY-6721 probably extraneous warning message generated

JRUBY-6722 Cant instantiate ThreadGroup subclass with arguments

JRUBY-6724 NO_FILE_CLASS Profile does disables File but not

FileStats that depends on File

JRUBY-6725 NameError: uninitialized constant RubyVM

JRUBY-6729 1.9: block argument to yield method is not correctly

pass to a block. pps seplist method

JRUBY-6731 Cant load class files in WARs compiled by warbler

using jruby 1.7.0.preview1

JRUBY-6734 Socket.new seems broken  throws exceptions on valid 

params

JRUBY-6735 FileUtils.chmod broken for symlinks

JRUBY-6737 Cannot use rspec with JRuby 1.7

JRUBY-6739 Does not read UTF-16 properly

JRUBY-6740 BasicObject.respond_to? raises a undefined method

`respond_to_missing?’

JRUBY-6741 Inconsistent == on java.lang.Integer between Mac and

RedHat Enterprise Linux

JRUBY-6742 ant dist aborts on non-Mac hosts

JRUBY-6745 ClassCastException calling Fixnum#== with a Java Integer

JRUBY-6746 OpenSSL connect_nonblock missing/broken in 1.6.7 and

1.7.0.preview1

JRUBY-6748 Race condition still in thread list

JRUBY-6753 class_eval should inherit __name__ from the caller

JRUBY-6755 Test suite failure: Unable to resolve dependencies:

rdoc requires json (~> 1.4)

JRUBY-6760 ArgumentError output

JRUBY-6761 NoMethodError: undefined method `recvfrom' for 

#Socket:fd

JRUBY-6762 How to detect if a Ruby method has been defined using

ScriptingContainer

JRUBY-6764 Ascii or UTF-8 Encoding ascii substrings that

originated from binary string causes an exception to be thrown.

JRUBY-6766 profile slows down Array#join , which distorts profiling 

results

JRUBY-6768 Instance variable value is lost under certain 

circumstances

JRUBY-6769 Curried lambda/proc does not work correctly with 

Array.map

JRUBY-6773 ERB parsing in JRuby 1.6.6

JRUBY-6774 wrong exception class thrown when opening file after 

Dir.chdir

JRUBY-6775 RubyRandom is not thread-safe

JRUBY-6776 Array#join(nil) should use $, as a separator for 

compatibility

JRUBY-6778 Possible long integer overflow bug in Integer#succ in

RubyInteger.java

JRUBY-6779 Strange behaviour of some Integer Ranges with

Range#each - maybe an integer overflow problem?

JRUBY-6780 File.open creates file without permissions

JRUBY-6782 load path doesnt respect rubygems when invoked from 

command line

JRUBY-6784 Wrong arg passed with lambda with splat

JRUBY-6785 NoMethodError calling callMethod on instance of

reopened Java class

JRUBY-6786 opening the singleton class of an exception breaks

equal and inspect

JRUBY-6788 Missing prompt in rails console

JRUBY-6789 Test for embedded JRuby are not run by CI

JRUBY-6791 RuntimExceptions with a Ruby Exception as cause will

not print out complete stacktrace

JRUBY-6792 Occasional java.lang.ArrayIndexOutOfBoundsException

calling ScriptingContainer#runScriptlet

JRUBY-6801 bundle exec no longer works

JRUBY-6802 JSON generation for largish data structures v. slow

under 1.7 (JDK 1.6)

JRUBY-6803 Reading thousands of files significantly slower with 

JRuby 1.7

JRUBY-6808 org.jruby.ext.ffi.Platform does not determineCPU or

determineOS properly on Turkish

JRUBY-6809 Time::utc sub-millisecond inaccuracy, causes incorrect

date in Rails

JRUBY-6813 Implement Time#round

JRUBY-6815 IO.read doesnt work with pipes

JRUBY-6816 jffi 1.2 jar files for FreeBSD

JRUBY-6819 java.lang.ArrayIndexOutOfBoundsException in 

String#each_line

JRUBY-6820 Unexpected behavior of IO.popen when giving arguments

as an array containing strings

JRUBY-6821 FFI::Pointer#write_string is missing

JRUBY-6822 Net::HTTP SSL connections fail with EAGAIN

GH-222 MatchData.begin(n) always returns 0 in jruby-1.6.7.2

GH-176 Fixes JRUBY-6658

GH-174 JRUBY-6668: StringScanner#scan_until spins forever on UTF-8 

data

GH-162 Recursive checking threadlocals in Ruby keep runtimes alive

GH-155 invokedynamic: Instance var sites do not age, do not handle

duped classes well

GH-145 exception in eval gets written to stderr

GH-141 ConcurrencyError in safe code

On 2012-08-07, at 19:12, Thomas E Enebo [email protected] wrote:

Ruby 1.7.0.preview2 Released
Tuesday, August 07 2012

The JRuby community is pleased to announce the release of JRuby 1.7.0.preview2.

Congratulations to all! Great work!


Uwe K.
[email protected]
http://kubosch.no/

The following stopped working with JRuby 1.7.preview2 (it works with
JRuby 1.6.7):

v can be a String or a BigDecimal (see Exception)

if (value == nil) or (value == “”)
v = “”
else
# do something different
end

But the following works:

if (value == nil) or (value.to_s == “”)
v = “”
else
# do something different
end

Besides that:

If I do the following:

event = “#{element}_on_execute”
class << self;
self
end.class_eval { define_method(event, &action.on_execute) }

I could do

action :preisliste do
on_execute do
show_form “preisliste_form”
end
end

In Jruby 1.7.preview2

I have to do

action :preisliste do
on_execute do |arg1, arg2|
show_form “preisliste_form”
end
end

I call the method with 2 arguments. But since I do not need them most
of the time I didn’t declare the block with parameters. JRuby 1.6.7
worked fine whit this construct. JRuby 1.7 not. Maybe a change required
by changing from Ruby 1.8.7 to Ruby 1.9 style ?

Regards
Roger

Exception:

Exception in thread “AWT-EventQueue-0” java.lang.ClassCastException:
java.lang.String cannot be cast to java.math.BigDecimal
at java.math.BigDecimal.compareTo(BigDecimal.java:208)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(JavaMethod.java:455)
at org.jruby.javasupport.JavaMethod.invokeDirect(JavaMethod.java:316)
at
org.jruby.java.invokers.InstanceMethodInvoker.call(InstanceMethodInvoker.java:61)
at
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:312)
at
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:169)
at org.jruby.ast.FCallOneArgNode.interpret(FCallOneArgNode.java:36)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
at
org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:75)
at
org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:182)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:192)
at
org.jruby.javasupport.util.RuntimeHelpers.invokedynamic(RuntimeHelpers.java:2674)
at org.jruby.RubyComparable.callCmpMethod(RubyComparable.java:117)
at org.jruby.RubyComparable.op_equal19(RubyComparable.java:108)
at
org.jruby.RubyComparable$INVOKER$s$1$0$op_equal19.call(RubyComparable$INVOKER$s$1$0$op_equal19.gen)
at
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:312)
at
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:169)
at org.jruby.ast.CallOneArgNode.interpret(CallOneArgNode.java:57)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
at org.jruby.ast.OrNode.interpret(OrNode.java:98)
at org.jruby.ast.IfNode.interpret(IfNode.java:110)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
at
org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:75)
at
org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:112)
at
org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:126)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:167)
at
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:282)
at
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:71)
at
org.jruby.ast.FCallManyArgsNode.interpret(FCallManyArgsNode.java:60)
at org.jruby.ast.LocalAsgnNode.interpret(LocalAsgnNode.java:123)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
at
org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:75)
at
org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:112)
at
org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:126)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:167)
at
org.jruby.javasupport.proxy.JavaProxyConstructor$2.invoke(JavaProxyConstructor.java:224)
at
org.jruby.proxy.inputformaddons.IFTableCellRenderer$Proxy8.beforeReturnRenderer(Unknown
Source)
at
inputformaddons.IFTableCellRenderer.getTableCellRendererComponent(IFTableCellRenderer.java:284)
at javax.swing.JTable.prepareRenderer(JTable.java:5720)
at org.jdesktop.swingx.JXTable.prepareRenderer(JXTable.java:3545)
at
javax.swing.plaf.basic.BasicTableUI.paintCell(BasicTableUI.java:2072)
at
javax.swing.plaf.basic.BasicTableUI.paintCells(BasicTableUI.java:1974)
at javax.swing.plaf.basic.BasicTableUI.paint(BasicTableUI.java:1770)
at javax.swing.plaf.ComponentUI.update(ComponentUI.java:153)
at javax.swing.JComponent.paintComponent(JComponent.java:752)
at javax.swing.JComponent.paint(JComponent.java:1029)
at javax.swing.JComponent.paintChildren(JComponent.java:862)
at javax.swing.JComponent.paint(JComponent.java:1038)
at javax.swing.JViewport.paint(JViewport.java:795)
at javax.swing.JComponent.paintChildren(JComponent.java:862)
at javax.swing.JComponent.paint(JComponent.java:1038)
at javax.swing.JComponent.paintChildren(JComponent.java:862)
at javax.swing.JComponent.paint(JComponent.java:1038)
at javax.swing.JComponent.paintChildren(JComponent.java:862)
at javax.swing.JComponent.paint(JComponent.java:1038)
at javax.swing.JLayeredPane.paint(JLayeredPane.java:567)
at javax.swing.JComponent.paintChildren(JComponent.java:862)
at javax.swing.JComponent.paint(JComponent.java:1038)
at
java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:34)
at
sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:60)
at
sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:97)
at java.awt.Container.paint(Container.java:1791)
at java.awt.Window.paint(Window.java:3379)
at sun.awt.RepaintArea.paintComponent(RepaintArea.java:276)
at sun.awt.RepaintArea.paint(RepaintArea.java:241)
at apple.awt.ComponentModel.handleEvent(ComponentModel.java:263)
at apple.awt.CWindow.handleEvent(CWindow.java:545)
at java.awt.Component.dispatchEventImpl(Component.java:4813)
at java.awt.Container.dispatchEventImpl(Container.java:2141)
at java.awt.Window.dispatchEventImpl(Window.java:2482)
at java.awt.Component.dispatchEvent(Component.java:4565)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:684)
at java.awt.EventQueue.access$000(EventQueue.java:85)
at java.awt.EventQueue$1.run(EventQueue.java:643)
at java.awt.EventQueue$1.run(EventQueue.java:641)
at java.security.AccessController.doPrivileged(Native Method)
at
java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at
java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
at java.awt.EventQueue$2.run(EventQueue.java:657)
at java.awt.EventQueue$2.run(EventQueue.java:655)
at java.security.AccessController.doPrivileged(Native Method)
at
java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:654)
at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Just ran all my current unit tests for the app I’m writing - nothing
failed
:slight_smile:

Thanks for the hard work! :slight_smile:

Mark

On Wed, Aug 8, 2012 at 3:12 AM, Thomas E Enebo [email protected]
wrote:

series represents a tremendous amount of work by dozens of
Due to some issues with Java 7s invokedynamic support we decided to
Many 1.9.x compatibility fixes

JRUBY-6181 SSH Agent forwarding does not work with jRuby (which

memory exception in Thread.

on java version/platform
Nokogiri under Windows

pass to a block. pps seplist method
JRUBY-6739 Does not read UTF-16 properly

JRUBY-6760 ArgumentError output

results
JRUBY-6775 RubyRandom is not thread-safe
JRUBY-6780 File.open creates file without permissions
equal and inspect


E: [email protected]
T: http://www.twitter.com/neurotic
W: www.compoundtheory.com

2 Devs from Down Under Podcast
http://www.2ddu.com/

Please, please, please test your applications against 1.7.0.preview2.
We want to make 1.7.0 a rock solid release and your contribution is
extremely helpful.
Notable Changes:

Yeah I still run into this segfault:
http://jira.codehaus.org/browse/JRUBY-6595
which means I’m sticking with 1.6 for now.
Cheers!
-roger-

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