[ https://issues.apache.org/jira/browse/SLING-2282?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carsten Ziegeler resolved SLING-2282. ------------------------------------- Resolution: Fixed Fix Version/s: Scripting Java 2.0.2 Fixed in revision: 1202102 Please note that a dash (like every other character) is escaped to a digit representation like _0002 - this is to avoid clashes like for example if you have a "my-component" and a "my_component" directory > 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