
Tuesday October 25, 2005
Which version of Rhino is in Mustang?
It is Rhino 1.6R2. For historians :-)
-
In JavaOne 2005, we mentioned that Mustang will use Rhino 1.5R5.
- In Mustang build 53, we migrated to Rhino 1.6R1
- Recently, we migrated to Rhino 1.6R2. Most probably, this will appear in Mustang build 59 or later
What's new in Rhino 1.6R2?
Please refer to
change log of Rhino 1.6R2.
From Java-JavaScript integration point of view, an important change in 1.6R2 is
306308 - JS function as Java interface via reflect.Proxy. What does it mean for script authors? It means that you can pass a JavaScript function whenever a Java interface is required. For example:
function f() {
print('hello world');
}
// Thread constructor requires java.lang.Runnable
// You can pass script function 'f' as parameter
// script function is wrapped as interface implementor
// using java.lang.reflect.Proxy mechanism
var v = new java.lang.Thread(f);
v.start();
( Oct 25 2005, 08:13:36 AM IST )
Permalink

|

|

|

|

|