Posted By: arton Tajima
Date: 2012-04-22 13:06
Summary: Rjb-1.4.0 was released
Project: Ruby Java Bridge
Rjb-1.4.0 is feature improved version.
1) Rjb_ProxyClass has initialize_proxy method. It's called by Rjb just instantiating a proxy.
see lib/rjb/list.rb, it checks the instance (self) is Iterable or Iterator, and if so, it include 'each' method for iteration.
2) Also add rjb/list for ruby like iteration. see test/listtest.rb.
3) Rjb::add_jar handle multiple call better than prior release.
If a.jar contains class A that extends class B, and b.jar contains class B.
with Rjb-1.3.9 or prior, it cause NoClassDefError if one called in order with Rjb::add_jar('a.jar'); Rjb::add_jar('b.jar').
In contrast Rjb-1.4.0, it uses single URLClassLoader for adding jars, so no need to consider adding jars order.
------
Known issue:
I checked JVM Windows JDK-1.6.0_26-b03, OSX 1.6.0_31 and Linux 1.6.0_26-b03 with test/gctest.rb and found Linux JVM does not free heap. It seems Linux sun jvm bug because Windows version and OSX version run fine and collect garbages well. Or I slip over some important point.
If you already have the solution, I wonder if you post the point on Rjb help forum or mail me it. |
|