[jboss-jira] [JBoss JIRA] Resolved: (JBCACHE-1373) Remove interfaces that implement Cloneable and offer a better alternative.
Manik Surtani (JIRA)
jira-events at lists.jboss.org
Tue Jul 15 12:43:54 EDT 2008
[ http://jira.jboss.com/jira/browse/JBCACHE-1373?page=all ]
Manik Surtani resolved JBCACHE-1373.
------------------------------------
Fix Version/s: 3.0.0.ALPHA1
Resolution: Done
> 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.ALPHA1, 3.0.0.GA
>
>
> 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