You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Jörg Hoh (JIRA)" <ji...@apache.org> on 2016/03/10 17:29:40 UTC
[jira] [Commented] (SLING-5597) Sightly generated Java classes for
component scripts might not run correctly if the Sightly engine is updated
on the instance
[ https://issues.apache.org/jira/browse/SLING-5597?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15189495#comment-15189495 ]
Jörg Hoh commented on SLING-5597:
---------------------------------
Would be good if the wiping could be triggered manually as well.
> Sightly generated Java classes for component scripts might not run correctly if the Sightly engine is updated on the instance
> -----------------------------------------------------------------------------------------------------------------------------
>
> Key: SLING-5597
> URL: https://issues.apache.org/jira/browse/SLING-5597
> Project: Sling
> Issue Type: Bug
> Components: Scripting
> Affects Versions: Scripting Sightly Engine 1.0.4
> Reporter: Radu Cotescu
> Assignee: Radu Cotescu
> Priority: Blocker
> Fix For: Scripting Sightly Engine 1.0.18
>
>
> When upgrading the Sightly scripting engine on a Sling instance the engine will not recompile Java classes generated for component scripts unless the component scripts are modified or the Java classes are manually deleted from the {{org.apache.sling.commons.fsclassloader}} bundle's data folder.
> This can lead to issues during those classes' execution since the engine's internals might change from one version to the other.
> The Sightly scripting engine should generate its Java classes similar to the JSP scripting engine, by prefixing the classes' packages with a Sightly specific package name (e.g. {{org.apache.sling.scripting.sightly}}) and wipe this file-system backed folder upon startup if the classes were generated by a previous version of the engine.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)