1. opensymphony
  2. xwork

Commits

mrdon  committed b8a985f

Fixed file reloading problems by defaulting to reloading config,
cleaned up compile warning

git-svn-id: http://svn.opensymphony.com/svn/xwork/trunk@1210e221344d-f017-0410-9bd5-d282ab1896d7

  • Participants
  • Parent commits 4f2e4a4
  • Branches master

Comments (0)

Files changed (2)

File src/java/com/opensymphony/xwork2/util/FileManager.java

View file
  • Ignore whitespace
     //~ Static fields/initializers /////////////////////////////////////////////
 
     private static Map files = Collections.synchronizedMap(new HashMap());
-    protected static boolean reloadingConfigs = false;
+    protected static boolean reloadingConfigs = true;
 
     //~ Constructors ///////////////////////////////////////////////////////////
 

File src/java/com/opensymphony/xwork2/util/LocalizedTextUtil.java

View file
  • Ignore whitespace
 
         synchronized (cache) {
             Class ccl = cache.getClass();
-            Method clearMethod = ccl.getMethod("clear", new Class[0]);
-            clearMethod.invoke(cache, new Class[0]);
+            Method clearMethod = ccl.getMethod("clear");
+            clearMethod.invoke(cache);
         }
 
     }