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

FXMLLoader: if script engines implement javax.script.Compilable compile scripts

    Details

    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      windows_10
    • Verification:
      Verified

      Description

      ADDITIONAL SYSTEM INFORMATION :
      All systems.

      A DESCRIPTION OF THE PROBLEM :
      FXMLLoader is able to execute scripts in Java script languages (javax.script.ScriptEngine implementations) if such a Java script language gets defined as the controller language in the FXML file.

      If a script engine implements the javax.script.Compilable interface, then such scripts could be compiled and the resulting javax.script.CompiledScript could be executed instead using its eval() methods.

      Evaluating the CompiledScript objects may help speed up the execution of script invocations, especially for scripts defined for event attributes in FXML elements (e.g. like onMouseMove) which may be repetitevly invoked and evaluated.


        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kcr Kevin Rushforth
                Reporter:
                webbuggrp Webbug Group
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: