EVALUATION
Added hooks to the JavaScript/Java bridge and APIs in the com.sun.*
namespace to allow third-party languages implemented on the JVM to
interpose on method calls, field accesses, and other operations. With
these hooks, the language implementor can define a mapping between
JavaScript syntax in the browser and their own language. JavaScript on
the web page can then call into applets written in these other
languages, like JRuby, Jython and Groovy. The first consumer of this
functionality and the principal use case is JavaFX Script.
The test case contains a link to the javadoc, which describes how a
language implementor would use the new APIs. Once this work is checked
in, code will be checked in to the JavaFX compiler workspace which
uses it to build the JavaScript/JavaFX Script bridge.
The changes are largely a refactoring of existing code, not logic
changes. Careful thought has been given to the security ramifications
of this feature; see in particular BridgeFactory.getBridge().
|