You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Krystian Nowak (JIRA)" <ji...@apache.org> on 2017/01/13 10:18:26 UTC

[jira] [Created] (SLING-6457) MergedResource's toString does not display properly merged resources' paths

Krystian Nowak created SLING-6457:
-------------------------------------

             Summary: MergedResource's toString does not display properly merged resources' paths
                 Key: SLING-6457
                 URL: https://issues.apache.org/jira/browse/SLING-6457
             Project: Sling
          Issue Type: Bug
          Components: Extensions
    Affects Versions: Resource Merger 1.3.0
            Reporter: Krystian Nowak
            Priority: Minor


Paths of merged resources are kept in a String array which is accessed by _toString_ via _ResourceMetadata metadata_ field which is in fact a String to Object map.
Therefore _toString_ method prints _this.metadata.get(MergedResourceConstants.METADATA_RESOURCES)_ directly which results in an output similar to this:
{noformat}
MergedResource [path=/merged, resources=[Ljava.lang.String;@51920d25]
{noformat}
instead of e.g.:
{noformat}
MergedResource [path=/merged, resources=[/a, /b, /c]]
{noformat}




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)