[jboss-cvs] JBossAS SVN: r93497 - branches/JBPAPP_4_3_0_GA_CP05_JBPAPP-2184/ejb3/src/main/org/jboss/ejb3/entity.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Sep 14 14:53:43 EDT 2009
Author: dereed
Date: 2009-09-14 14:53:43 -0400 (Mon, 14 Sep 2009)
New Revision: 93497
Modified:
branches/JBPAPP_4_3_0_GA_CP05_JBPAPP-2184/ejb3/src/main/org/jboss/ejb3/entity/OptimisticJBCCache.java
Log:
[JBPAPP-2783] Fix OPTIMISTIC version check for EJB3 entities
Modified: branches/JBPAPP_4_3_0_GA_CP05_JBPAPP-2184/ejb3/src/main/org/jboss/ejb3/entity/OptimisticJBCCache.java
===================================================================
--- branches/JBPAPP_4_3_0_GA_CP05_JBPAPP-2184/ejb3/src/main/org/jboss/ejb3/entity/OptimisticJBCCache.java 2009-09-14 18:51:35 UTC (rev 93496)
+++ branches/JBPAPP_4_3_0_GA_CP05_JBPAPP-2184/ejb3/src/main/org/jboss/ejb3/entity/OptimisticJBCCache.java 2009-09-14 18:53:43 UTC (rev 93497)
@@ -419,6 +419,11 @@
return (other.previousVersion != null);
}
+ // Can't be newer than itself
+ if ( this == dataVersion ) {
+ return false;
+ }
+
return versionComparator.compare( currentVersion, other.previousVersion ) >= 1;
}
More information about the jboss-cvs-commits
mailing list