Reviewed-by: darcy, weijun
Move call to getDeclaredMethods inside doPrivileged Reviewed-by: darcy, mullan