Return-Path: X-Original-To: apmail-struts-commits-archive@minotaur.apache.org Delivered-To: apmail-struts-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4EE3D17714 for ; Mon, 30 Mar 2015 08:03:40 +0000 (UTC) Received: (qmail 38744 invoked by uid 500); 30 Mar 2015 07:56:53 -0000 Delivered-To: apmail-struts-commits-archive@struts.apache.org Received: (qmail 38709 invoked by uid 500); 30 Mar 2015 07:56:53 -0000 Mailing-List: contact commits-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list commits@struts.apache.org Received: (qmail 38700 invoked by uid 99); 30 Mar 2015 07:56:53 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Mar 2015 07:56:53 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 6EB8ADFF4C; Mon, 30 Mar 2015 07:56:53 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: lukaszlenart@apache.org To: commits@struts.apache.org Message-Id: <65268eea023c4846a06e9aa5767cc42c@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: struts git commit: WW-4481 Adds context to deprecations warning Date: Mon, 30 Mar 2015 07:56:53 +0000 (UTC) Repository: struts Updated Branches: refs/heads/develop 3e23f2191 -> 6021995bf WW-4481 Adds context to deprecations warning Project: http://git-wip-us.apache.org/repos/asf/struts/repo Commit: http://git-wip-us.apache.org/repos/asf/struts/commit/6021995b Tree: http://git-wip-us.apache.org/repos/asf/struts/tree/6021995b Diff: http://git-wip-us.apache.org/repos/asf/struts/diff/6021995b Branch: refs/heads/develop Commit: 6021995bfbad1cbf0e6dc16b2d3e19cf9b65011d Parents: 3e23f21 Author: Lukasz Lenart Authored: Mon Mar 30 09:51:54 2015 +0200 Committer: Lukasz Lenart Committed: Mon Mar 30 09:51:54 2015 +0200 ---------------------------------------------------------------------- .../java/com/opensymphony/xwork2/ognl/SecurityMemberAccess.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/struts/blob/6021995b/xwork-core/src/main/java/com/opensymphony/xwork2/ognl/SecurityMemberAccess.java ---------------------------------------------------------------------- diff --git a/xwork-core/src/main/java/com/opensymphony/xwork2/ognl/SecurityMemberAccess.java b/xwork-core/src/main/java/com/opensymphony/xwork2/ognl/SecurityMemberAccess.java index 7697368..eb586e5 100644 --- a/xwork-core/src/main/java/com/opensymphony/xwork2/ognl/SecurityMemberAccess.java +++ b/xwork-core/src/main/java/com/opensymphony/xwork2/ognl/SecurityMemberAccess.java @@ -63,8 +63,8 @@ public class SecurityMemberAccess extends DefaultMemberAccess { Class memberClass = member.getDeclaringClass(); if (Modifier.isStatic(member.getModifiers()) && allowStaticMethodAccess) { - if (LOG.isWarnEnabled()) { - LOG.warn("Support for accessing static methods is deprecated! Please refactor your application!"); + if (LOG.isDebugEnabled()) { + LOG.debug("Support for accessing static methods [target: #0, member: #1, property: #2] is deprecated!", target, member, propertyName); } if (!isClassExcluded(member.getDeclaringClass())) { targetClass = member.getDeclaringClass();