Commits

ph...@d4b077e3-5828-0410-b394-cb2b42183085  committed 9748c28

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

  • Participants
  • Parent commits 9b45437
  • Branches ognl_2-6-9

Comments (0)

Files changed (1)

File 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;