[
https://issues.apache.org/jira/browse/SLING-2282?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tobias Bocanegra closed SLING-2282.
-----------------------------------
thanks. works.
> Java Script Engine does not escape directory paths
> --------------------------------------------------
>
> Key: SLING-2282
> URL: https://issues.apache.org/jira/browse/SLING-2282
> Project: Sling
> Issue Type: Bug
> Components: Scripting
> Affects Versions: Scripting Java 2.0.0
> Reporter: Tobias Bocanegra
> Assignee: Carsten Ziegeler
> Priority: Minor
> Fix For: Scripting Java 2.0.2
>
>
> If you have a java servlet on a path that contains a hyphen, the java script
> engine does not escape it properly.
> eg:
> servlet on: /apps/myproject/components/my-component/img.png.java,
> the package should be "apps.myproject.components.my_components"
> class name: "img_png"
> but when compiling it reports:
> Compilation errors in
> /apps/geometrixx/myproject/my-component/img.png.java:
> Line 13, column 415 : The declared package
> "apps.myproject.components.my_component" does not match the expected package
> "apps.myproject.components.my-component"
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira