Recent versions of Rhino have only been tested with JDK 1.4 and greater. Older versions support JDKs as early as 1.1.
To use the JavaAdapter feature or an optimization level of 0 or greater, Rhino must be running under a security manager that allows the definition of class loaders.
If a JavaObject's field's name collides with that of a method, the value of that field is retrieved lazily, and can be counter-intuitively affected by later assignments:
javaObj.fieldAndMethod = 5; var field = javaObj.fieldAndMethod; javaObj.fieldAndMethod = 7; // now, field == 7
javaObj.fieldAndMethod = 5; var field = javaObj.fieldAndMethod + 0; // force conversion now javaObj.fieldAndMethod = 7; // now, field == 5
Rhino does NOT support the