You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (Jira)" <ji...@apache.org> on 2023/05/04 09:25:00 UTC
[jira] [Resolved] (SLING-3266) RhinoJavaScriptEngine should Implement javax.script.Compilable
[ https://issues.apache.org/jira/browse/SLING-3266?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carsten Ziegeler resolved SLING-3266.
-------------------------------------
Resolution: Won't Fix
> RhinoJavaScriptEngine should Implement javax.script.Compilable
> --------------------------------------------------------------
>
> Key: SLING-3266
> URL: https://issues.apache.org/jira/browse/SLING-3266
> Project: Sling
> Issue Type: Improvement
> Components: Scripting
> Affects Versions: Scripting JavaScript 2.0.12
> Reporter: Sameer Charles
> Priority: Minor
>
> AFAIK, Rhino javascript engine bundled with java 5 implement javax.script.Compilable. It would be good if the sling RhinoJavascriptEngine would implement compilable and provide a javax.script.CompiledScript extension.
> Currently if you want to compile JS, you are forced to use Rhino directly.
> In addition, it would also be nice to have a support for any Compilable engine. ie. if the engine implement Compilable, sling should compile and keep the CompiledScript in repository for subsequent evaluation.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)