Uploaded image for project: 'ShrinkWrap'
  1. ShrinkWrap
  2. SHRINKWRAP-38

ByteArrayAsset may export internal state

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 0.1.0
    • None
    • impl-base
    • None

    Description

      Must copy the byte array passed into the ctor, else clients may mutate the state. Found by FindBugs:

      new org.jboss.shrinkwrap.impl.base.asset.ByteArrayAsset(byte[]) may expose internal representation by storing an externally mutable object into ByteArrayAsset.content

      Attachments

        Activity

          People

            arubinge@redhat.com Andrew Rubinger (Inactive)
            arubinge@redhat.com Andrew Rubinger (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: