User: patriot1burke
Date: 01/06/13 14:15:23
Modified: src/main/org/jboss/ejb CacheKey.java
Log:
comment change
Revision Changes Path
1.11 +3 -2 jboss/src/main/org/jboss/ejb/CacheKey.java
Index: CacheKey.java
===================================================================
RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/ejb/CacheKey.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- CacheKey.java 2001/06/13 18:48:15 1.10
+++ CacheKey.java 2001/06/13 21:15:23 1.11
@@ -21,7 +21,7 @@
*
* @see org.jboss.ejb.plugins.NoPassivationInstanceCache.java
* @author <a href="[EMAIL PROTECTED]">Marc Fleury</a>
-* @version $Revision: 1.10 $
+* @version $Revision: 1.11 $
*/
public class CacheKey
implements java.io.Externalizable
@@ -68,7 +68,8 @@
try {
// Equals rely on the MarshalledObject itself
mo = new MarshalledObject(id);
- // Make a copy just in case somebody re-uses the instance
+ // Make a copy of the id to enforce copy semantics and
+ // allow reuse of the original primary key
this.id = mo.get();
// Precompute the hashCode (speed)
hashCode = mo.hashCode();
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development