"Internal review ID 9063426: "FXMLLoader: if script engines implement javax.script.Compilabel compile scripts"

Rony G. Flatscher Rony.Flatscher at wu.ac.at
Sat Jan 25 14:38:03 UTC 2020

On 24.01.2020 16:26, Kevin Rushforth wrote:
> Thank you for filing this enhancement request. As an enhancement it should be discussed on this
> list before proceeding with a pull request (although a "WIP" or Draft PR can be used to illustrate
> the concept).
Sure, will do after creating an appropriate PR for adding the ARGV and FILENAME entries to the
engine scope bindings [1] (may take a little while).
> For my part, this seems like a reasonable enhancement, as long as there are no compatibility
> issues, but it would be good to hear from application developers who heavily use FXML.



[1] https://bugs.openjdk.java.net/browse/JDK-8234959

> On 1/24/2020 7:21 AM, Rony G. Flatscher wrote:
>> Just filed a RFE with the following information:
>>    * Component:
>>        o JavaFX
>>    * Subcomponent:
>>        o fxml: JavaFX FXML
>>    * Synopsis:
>>        o "FXMLLoader: if script engines implement javax.script.Compilabel compile scripts"
>>    * Descriptions:
>>        o "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."
>>    * System /OS/Java Runtime Information:
>>        o "All systems."
>> Received the internal review ID: "9063426"
>> ---rony 

More information about the openjfx-dev mailing list