Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-6457

MergedResource's toString does not display properly merged resources' paths

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Resource Merger 1.3.0
    • Resource Merger 1.3.2
    • Extensions
    • None

    Description

      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:

      MergedResource [path=/merged, resources=[Ljava.lang.String;@51920d25]
      

      instead of e.g.:

      MergedResource [path=/merged, resources=[/a, /b, /c]]
      

      Attachments

        1. SLING-6457-krystian.patch
          3 kB
          Krystian Nowak

        Activity

          People

            kwin Konrad Windszus
            krystian Krystian Nowak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: