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

JavaScript engine, language version values are not proper

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 6
    • Fix Version/s: 6
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b63
    • CPU:
      generic
    • OS:
      generic

      Description

      ScriptEngineFactory.getLanguageVersion() and ScriptEngineFactory.getEngineVersion() APIs return version information of the engine. But, for JavaScript engine these methods return '0' and "@IMPLEMENTATION_VERSION@' respectively. These should return '1.6' and '1.6 release 2' respectively.

      jrunscript -q outputs:

      Language ECMAScript 0 implemention "Mozilla Rhino" @IMPLEMENTATION.VERSION@

      The output should look like:

      Language ECMAScript 1.6 implemention "Mozilla Rhino" 1.6 release 2

        Attachments

          Activity

            People

            • Assignee:
              sundar Sundararajan Athijegannathan
              Reporter:
              sundar Sundararajan Athijegannathan
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: