« October 2005 »
SunMonTueWedThuFriSat
      
1
2
3
4
8
9
10
11
12
13
15
16
17
19
22
23
27
28
30
31
     
Today
XML

Blog::Navigation

GetJava Download Button
Get the Source
Personal Blog

Blog::Referers

Today's Page Hits: 464

Powered by Roller Weblogger.
« Previous day (Oct 23, 2005) | Main | Next day (Oct 25, 2005) »
20051025 Tuesday October 25, 2005

Which version of Rhino is in Mustang?

It is Rhino 1.6R2. For historians :-)

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 del.icio.us | furl | simpy | slashdot | technorati | digg

Copyright (C) 2005, A. Sundararajan's Weblog