Commits

Anonymous 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

Comments (0)

Files changed (2)

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

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

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

 
         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);
         }
 
     }