Commits

Anonymous committed 9748c28

Fixed race condition in the invokeMethod() method by synchronizing it.

Comments (0)

Files changed (1)

src/java/ognl/OgnlRuntime.java

         return result;
     }
 
-    public static Object invokeMethod( Object target, Method method, Object[] argsArray ) throws InvocationTargetException, IllegalAccessException
+    public static synchronized Object invokeMethod( Object target, Method method, Object[] argsArray ) throws InvocationTargetException, IllegalAccessException
     {
         Object      result;
         boolean     wasAccessible = true;