Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
Scripting Sightly Engine 1.0.4
-
None
Description
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.
Attachments
Issue Links
- is duplicated by
-
SLING-5766 Sightly: Automatically clear all compiled scripts when the Sightly Engine Bundle was updated
- Resolved