Santiago García Pimentel created SLING-7581:

             Summary: Using data-sly-use with two classes with same name will 
generate uncompilable code
                 Key: SLING-7581
             Project: Sling
          Issue Type: Bug
    Affects Versions: Scripting HTL Compiler 1.0.16
            Reporter: Santiago García Pimentel

If you have a sightly file with two data-sly-use with classes with the same 
name. Sightly will generate a java file which cannot be compiled.





Will generate


import com.client.project.Page;
 import com.adobe.cq.wcm.core.components.models.Page;
 _global_first="use", Page.class.getName(), obj());
 _global_second ="use", Page.class.getName(), obj());


Causing a compilation error.


The import com.adobe.cq.wcm.core.components.models.Page collides with another 
import statement.

This seems to have been introduced by SLING-7205 .

This message was sent by Atlassian JIRA

Reply via email to