[jboss-jira] [JBoss JIRA] Created: (JBCACHE-1373) Remove interfaces that implement Cloneable and offer a better alternative.

Manik Surtani (JIRA) jira-events at lists.jboss.org
Tue Jun 17 20:39:37 EDT 2008


Remove interfaces that implement Cloneable and offer a better alternative.
--------------------------------------------------------------------------

                 Key: JBCACHE-1373
                 URL: http://jira.jboss.com/jira/browse/JBCACHE-1373
             Project: JBoss Cache
          Issue Type: Task
      Security Level: Public (Everyone can see)
            Reporter: Manik Surtani
         Assigned To: Manik Surtani
             Fix For: 3.0.0


A bunch of classes and interfaces implement/extend Cloneable and generally this is bad practice and difficult to control.  A copy constructor or factory method should be used instead with explicit copy semantics.  Perhaps a Duplicable interface, with a public duplicate() method, that will explicitly construct, duplicate state and return the instance?

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

        



More information about the jboss-jira mailing list