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

Rony G.Flatscher github.com+60214806+ronyfla at openjdk.java.net
Wed May 13 12:06:30 UTC 2020


On Wed, 13 May 2020 09:22:20 GMT, Rony G. Flatscher <github.com+60214806+ronyfla at openjdk.org> wrote:

>> Doc addition for the CSR:
>> =================
>> The following text was added to the [Introduction to
>> FXML](https://github.com/openjdk/jfx/blob/master/modules/javafx.fxml/src/main/docs/javafx/fxml/doc-files/introduction_to_fxml.html)
>> at two locations, the "Script Event Handlers" ("#script_event_handlers") and the "Scripting" (#scripting") sections:
>>> <p>Hint: to turn off automatic compilation of script code place the processing instruction <span
>>> class="code"><?compile false?></span> before the script. To turn on compilation of script code again use the
>>> processing instruction <span class="code"><?compile true?></span> (or short: <span
>>> class="code"><?compile?></span>). The compile processing instruction can be used repeatedly to turn compilation
>>> of script code off and on.</p>
>> 
>> This documents the compile processing instruction, that it compilation is on by default and that it can be turned off
>> and on repeatedly. It is hoped that this formulation plays well with the context where this paragraph got introduced.
>
> Doc addition for the CSR (update)
> -------------------------------------
> In the event handler section:
>> <p>Note: to turn off automatic compilation of script code place the processing instruction <span
>> class="code"><?compile false?></span> before the element that contains the script. To turn on compilation of
>> script code again use the processing instruction <span class="code"><?compile true?></span> (or short: <span
>> class="code"><?compile?></span>). The compile processing instruction can be used repeatedly to turn compilation
>> of script code off and on.</p>
> 
> In the Scripting section:
>> <p>Note: to turn off automatic compilation of script code place the processing instruction <span
>> class="code"><?compile false?></span> before the script element. To turn on compilation of script code again use
>> the processing instruction <span class="code"><?compile true?></span> (or short: <span
>> class="code"><?compile?></span>). The compile processing instruction can be used repeatedly to turn compilation
>> of script code off and on.</p>

/solves

-------------

PR: https://git.openjdk.java.net/jfx/pull/192


More information about the openjfx-dev mailing list