You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Radu Cotescu (JIRA)" <ji...@apache.org> on 2016/08/18 15:34:20 UTC
[jira] [Created] (SLING-5978) Make Sightly throw compilation errors
when unknown data-sly-* plugins are used
Radu Cotescu created SLING-5978:
-----------------------------------
Summary: Make Sightly throw compilation errors when unknown data-sly-* plugins are used
Key: SLING-5978
URL: https://issues.apache.org/jira/browse/SLING-5978
Project: Sling
Issue Type: Bug
Components: Scripting
Affects Versions: Scripting Sightly Compiler 1.0.0
Reporter: Radu Cotescu
Assignee: Radu Cotescu
Priority: Minor
The current version of the {{MarkupHandler#obtainPlugin}} \[0\] method throws an {{UnsupportedOperationException}} whenever an unknown {{data-sly-*}} plugin is used. Instead, the method should just generate an error in the AST stream.
\[0\] - https://github.com/apache/sling/blob/1aa2c8be782ecb858de9030501e67edc4aba1357/bundles/scripting/sightly/compiler/src/main/java/org/apache/sling/scripting/sightly/impl/html/dom/MarkupHandler.java#L403
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)