Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6980447

Rhino JavaScript engine code in jdk-7 has to updated with the latest code from Rhino 1.7R3

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 7
    • 6, 7
    • core-libs
    • b126
    • generic, x86
    • generic, windows_vista
    • Verified

      As a reference jsr-223 script engine, javascript engine based on Mozilla Rhino was added to JDK 6. We used the then current Rhino code (version 1.6R2) implementing JavaScript 1.6 in JDK 6. In the mean time, Rhino code has evolved to version 1.7R3 and now supports JavaScript version 1.8.

      We need to update Rhino code in JDK 7 with the code from the latest 1.7R3 version. This is needed because

      (a) Rhino now supports JavaScript 1.8
      (b) Rhino supports parts of ECMAScript 5 specification

      Also, in JDK 6 we had excluded the optional E4X (XML support for javascript - ECMAScript standard ECMA-357). This is because of dependency on Apache XML beans (footprint and security concerns). The 1.7R3 version of Rhino supports E4X using DOM 3 without depending on anything else. So, we may want to support E4X in JDK 7.

            sundar Sundararajan Athijegannathan
            sundar Sundararajan Athijegannathan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: