public static Object callStaticMethod(OgnlContext context, String className, String methodName, Object[] args) throws OgnlException { try { Class targetClass = classForName(context, className); if (targetClass == null) throw new ClassNotFoundException("Unable to resolve class with name " + className); MethodAccessor ma = getMethodAccessor(targetClass); return ma.callStaticMethod(context, targetClass, methodName, args); } catch (ClassNotFoundException ex) { throw new MethodFailedException(className, methodName, ex); } }
public static Object callStaticMethod(OgnlContext context, String className, String methodName, Object[] args) throws OgnlException { try { Class targetClass = classForName(context, className); if (targetClass == null) throw new ClassNotFoundException("Unable to resolve class with name " + className); MethodAccessor ma = getMethodAccessor(targetClass); return ma.callStaticMethod(context, targetClass, methodName, args); } catch (ClassNotFoundException ex) { throw new MethodFailedException(className, methodName, ex); } }
objectArrayPool.recycle(actualArgs); throw new MethodFailedException( source, methodName, reason );
public static final Object callStaticMethod( OgnlContext context, String className, String methodName, Object[] args ) throws OgnlException, MethodFailedException { try { Object result; Class targetClass = classForName(context, className); MethodAccessor ma = getMethodAccessor(targetClass); return ma.callStaticMethod(context, targetClass, methodName, args); } catch (ClassNotFoundException ex) { throw new MethodFailedException(className, methodName, ex); } }
throw new MethodFailedException(source, methodName, reason);
throw new MethodFailedException(source, methodName, reason);
invalidMethods.put(mc, Boolean.TRUE); } else if (reason != null) { throw new MethodFailedException(o, name, e.getReason());
throw new MethodFailedException(className, "new", reason);
throw new MethodFailedException( className, "new", reason );
throw new MethodFailedException(className, "new", reason);