[shrinkwrap-issues] [JBoss JIRA] Created: (SHRINKWRAP-38) ByteArrayAsset may export internal state

Andrew Lee Rubinger (JIRA) jira-events at lists.jboss.org
Fri Sep 18 11:40:49 EDT 2009


ByteArrayAsset may export internal state
----------------------------------------

                 Key: SHRINKWRAP-38
                 URL: https://jira.jboss.org/jira/browse/SHRINKWRAP-38
             Project: ShrinkWrap
          Issue Type: Bug
          Components: impl-base
            Reporter: Andrew Lee Rubinger
            Assignee: Andrew Lee Rubinger


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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the shrinkwrap-issues mailing list