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

Manik Surtani msurtani at jboss.com
Fri Sep 15 11:11:35 EDT 2006


  User: msurtani
  Date: 06/09/15 11:11:35

  Modified:    src/org/jboss/cache/config  Configuration.java
  Log:
  - better exception message when changing an immutable config element at runtime
  - updated tests that change certain elements dynamically.
  
  Revision  Changes    Path
  1.20      +1 -1      JBossCache/src/org/jboss/cache/config/Configuration.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Configuration.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/config/Configuration.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -b -r1.19 -r1.20
  --- Configuration.java	13 Sep 2006 16:02:17 -0000	1.19
  +++ Configuration.java	15 Sep 2006 15:11:35 -0000	1.20
  @@ -553,7 +553,7 @@
         {
            if (cache != null && cache.started && !getClass().getDeclaredField(fieldName).isAnnotationPresent(Dynamic.class))
            {
  -            throw new ConfigurationException("Attempted to modify a non-Dymnamic configuration element after the cache has started!");
  +            throw new ConfigurationException("Attempted to modify a non-Dynamic configuration element [" + fieldName + "] after the cache has started!");
            }
         }
         catch (NoSuchFieldException e)
  
  
  



More information about the jboss-cvs-commits mailing list