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

Manik Surtani msurtani at jboss.com
Wed Feb 28 13:37:05 EST 2007


  User: msurtani
  Date: 07/02/28 13:37:05

  Modified:    src/org/jboss/cache/aop  Tag: Branch_JBossCache_1_4_0
                        PojoCache.java
  Log:
  JBCACHE-979
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.23.2.4  +12 -7     JBossCache/src/org/jboss/cache/aop/Attic/PojoCache.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: PojoCache.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/aop/Attic/PojoCache.java,v
  retrieving revision 1.23.2.3
  retrieving revision 1.23.2.4
  diff -u -b -r1.23.2.3 -r1.23.2.4
  --- PojoCache.java	5 Dec 2006 00:01:52 -0000	1.23.2.3
  +++ PojoCache.java	28 Feb 2007 18:37:05 -0000	1.23.2.4
  @@ -477,10 +477,12 @@
                  exn.printStackTrace();
               }
   
  -            if(!(e instanceof CacheException))
  -               throw new RuntimeException("PojoCache.putObject(): fqn: " +fqn , e);
  +            if (e instanceof RuntimeException)
  +               throw (RuntimeException) e;
  +            else if (e instanceof CacheException)
  +               throw (CacheException) e;
               else
  -               throw (CacheException)e;
  +               throw new RuntimeException("PojoCache.putObject(): fqn: " +fqn , e);
            }
            finally
            {
  @@ -544,10 +546,12 @@
                  exn.printStackTrace();
               }
   
  -            if(!(e instanceof CacheException))
  -               throw new RuntimeException("PojoCache.removeObject(): fqn: " +fqn , e);
  +            if (e instanceof RuntimeException)
  +               throw (RuntimeException) e;
  +            else if (e instanceof CacheException)
  +               throw (CacheException) e;
               else
  -               throw (CacheException)e;
  +               throw new RuntimeException("PojoCache.removeObject(): fqn: " +fqn , e);
            }
            finally
            {
  @@ -675,7 +679,8 @@
               // We have transaction context. Return null to signify don't do anything
               return true;
            }
  -      } catch (SystemException e) {
  +      } catch (SystemException e)
  +      {
            throw new RuntimeException("PojoCache.hasCurrentTransaction: ", e);
         }
         return false;
  
  
  



More information about the jboss-cvs-commits mailing list