Uploaded image for project: 'GeoTools'
  1. GeoTools
  2. GEOT-5397

FeatureTypeStyleImpl.clone() does not create deep clone

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 12.1
    • Fix Version/s: 14.4, 15.0
    • Component/s: None
    • Labels:
      None

      Description

      org.geotools.styling.FeatureTypeStyleImpl.clone() reuses the rules, featureTypeNames, semantics collections instead of creating new collections. The collections of the original object are cleared. Both original object and cloned object have empty collections after the call.

      The attached file proposes a fix.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              BStrauss Burkhard Strauss
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: