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 2015/10/02 18:07:26 UTC
[jira] [Comment Edited] (SLING-4971) "static" node name not allowed
as a script ancestor
[ https://issues.apache.org/jira/browse/SLING-4971?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14936716#comment-14936716 ]
Radu Cotescu edited comment on SLING-4971 at 10/2/15 4:06 PM:
--------------------------------------------------------------
Fixed in [r1705994|https://svn.apache.org/viewvc?view=revision&revision=r1705994]. Simplified implementation in [r1706440|https://svn.apache.org/viewvc?view=revision&revision=r1706440].
was (Author: radu.cotescu):
Fixed in [r1705994|https://svn.apache.org/viewvc?view=revision&revision=r1705994].
> "static" node name not allowed as a script ancestor
> ---------------------------------------------------
>
> Key: SLING-4971
> URL: https://issues.apache.org/jira/browse/SLING-4971
> Project: Sling
> Issue Type: Bug
> Components: Scripting
> Affects Versions: Scripting Sightly Engine 1.0.2
> Reporter: Nicolas Peltier
> Assignee: Radu Cotescu
> Priority: Minor
> Fix For: Scripting Sightly Engine 1.0.6
>
>
> Looks like having "static" as a script ancestor (e.g. /apps/blah/static/foo/foo.html) will break badly the script rendering (and all the rendering process), yelling:
> {noformat}
> Line 1, column 0 : The declared package "" does not match the expected package "apps.blah.static.foo"
> Line 19, column 994 : Syntax error on token "static", Identifier expected
> at org.apache.sling.scripting.sightly.impl.compiler.SightlyJavaCompilerService.compileSource(SightlyJavaCompilerService.java:143)
> at org.apache.sling.scripting.sightly.impl.engine.UnitLoader.createUnit(UnitLoader.java:140)
> at org.apache.sling.scripting.sightly.impl.engine.SightlyScriptEngine.evaluateScript(SightlyScriptEngine.java:94)
> at org.apache.sling.scripting.sightly.impl.engine.SightlyScriptEngine.eval(SightlyScriptEngine.java:83)
> at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:361)
> at org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(DefaultSlingScript.java:171)
> at org.apache.sling.scripting.core.impl.DefaultSlingScript.service(DefaultSlingScript.java:463)
> ... 258 common frames omitted
> Caused by: org.apache.sling.scripting.sightly.impl.compiler.CompilerException: org.apache.sling.scripting.sightly.impl.compiler.CompilerException: Compilation errors in apps/blah/static/foo/SightlyJava_foo.java:
> Line 1, column 0 : The declared package "" does not match the expected package "apps.blah.static.foo"
> Line 19, column 994 : Syntax error on token "static", Identifier expected
> at org.apache.sling.scripting.sightly.impl.compiler.SightlyJavaCompilerService.compileJavaResource(SightlyJavaCompilerService.java:258)
> at org.apache.sling.scripting.sightly.impl.compiler.SightlyJavaCompilerService.compileSource(SightlyJavaCompilerService.java:141)
> ... 264 common frames omitted
> Caused by: org.apache.sling.scripting.sightly.impl.compiler.CompilerException: Compilation errors in apps/blah/static/foo/SightlyJava_foo.java:
> Line 1, column 0 : The declared package "" does not match the expected package "apps.blah.static.foo"
> Line 19, column 994 : Syntax error on token "static", Identifier expected
> at org.apache.sling.scripting.sightly.impl.compiler.SightlyJavaCompilerService.compileJavaResource(SightlyJavaCompilerService.java:250)
> ... 265 common frames omitted
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)