scripting
  1. scripting
  2. SCRIPTING-46

JRubyScriptEngine reports itself as being MULTITHREADED although its not

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: current
    • Fix Version/s: milestone 1
    • Component/s: www
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      46

      Description

      Calling JRubyScriptEngineFactory.getParameter("THREADING") returns
      "MULTITHREADED", but the JRuby script engine is not "MULTITHREADED" as that term
      is defined in the ScriptEngineFactory JavaDocs.

      ScriptEngineFactory says that a ScriptEngine is "MULTITHREADED" if a
      ScriptEngine instance can execute several scripts concurrently.

      The JRuby script engine hangs a big, fat "synchronized" on all of its eval
      methods. Thus only one script can execute in one script engine instance at any
      given time.

      JRubyScriptEngineFactory.getParameter("THREADING") should really return null.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            scripting-issues
            Reporter:
            kalleg
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: