[jboss-cvs] JBossCache/src/org/jboss/cache/interceptors ...

Manik Surtani msurtani at jboss.com
Wed Jan 31 11:44:29 EST 2007


  User: msurtani
  Date: 07/01/31 11:44:29

  Modified:    src/org/jboss/cache/interceptors 
                        OptimisticValidatorInterceptor.java
  Log:
  JBCACHE-962
  
  Revision  Changes    Path
  1.56      +1 -5      JBossCache/src/org/jboss/cache/interceptors/OptimisticValidatorInterceptor.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: OptimisticValidatorInterceptor.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/interceptors/OptimisticValidatorInterceptor.java,v
  retrieving revision 1.55
  retrieving revision 1.56
  diff -u -b -r1.55 -r1.56
  --- OptimisticValidatorInterceptor.java	19 Jan 2007 14:47:40 -0000	1.55
  +++ OptimisticValidatorInterceptor.java	31 Jan 2007 16:44:29 -0000	1.56
  @@ -125,11 +125,7 @@
   
            if (!workspaceNode.isCreated() && (workspaceNode.isDeleted() || workspaceNode.isDirty()))
            {
  -            // test that the 2 DataVersion types match up
  -            if (!realNode.getVersion().getClass().equals(workspaceNode.getVersion().getClass()) && checkNotInitialRootVersion(realNode))
  -            {
  -               throw new DataVersioningException("Attempting to apply data version of type " + workspaceNode.getVersion().getClass() + " to a node [fqn = " + realNode.getFqn() + "] that already contains version of type " + realNode.getVersion().getClass());
  -            }
  +            // if there is a DataVersion type mismatch here, leave it up to the DataVersion impl to barf if necessary.  - JBCACHE-962 
               if (realNode.getVersion().newerThan(workspaceNode.getVersion()))
               {
                  // we have an out of date node here
  
  
  



More information about the jboss-cvs-commits mailing list