Files | Admin

Notes:

Release Name: 1.3.5

Notes: Rjb-1.3.5 supports \'block as annoymous inner class\' like JRuby. You may put block as the last interface argument. For example java.util.Arrays.binarySearch takes 3 arguments : the array, the key and the comparator. So you may write just: Arrays = Rjb::import(\'java.util.Arrays\') a = [0, 1, -2, 3, 4, -5] p Arrays.binarySearch(a, -3) {|m, o1, o2| o1.abs - o2.abs } #=> 3 #------- The arguments for the block is just as Object#method_missing. The first argument is Symbol of the method caller called, after the second argments are the method\'s original arguments. Another new feature for Win64. JDK for Win64 only installs server VM for AMD64, so Rjb also loads server vm. (Win32 Rjb loads client or classic as it did before).


Changes: Mon Jul 18 arton *ext/rjb.c fix inhiritance test. add anonymous inner class feature (as JRuby) *test/test.rb add anonymous inner class test *test/Two.java for anonymous inner class test *test/TwoCaller.java for anonymous inner class test Sat Jul 16 arton *ext/laod.c load server JVM if _WIN64 *ext/rjb.c RJB_VERSION -> 1.3.5 *test/test.rb add primitive_conversion and generic test. *test/Test.java add method that takes generic map and returns it