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();


Comments:

Post a Comment:
Comments are closed for this entry.
About

sundararajan

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today
Bookmarks
Links

No bookmarks in folder

Blogroll

No bookmarks in folder

News

No bookmarks in folder