You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by lu...@apache.org on 2015/03/30 09:56:53 UTC

struts git commit: WW-4481 Adds context to deprecations warning

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 <lu...@apache.org>
Authored: Mon Mar 30 09:51:54 2015 +0200
Committer: Lukasz Lenart <lu...@apache.org>
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();