[jira] [Commented] (WW-4481) Deprecated warning gives no context
[ https://issues.apache.org/jira/browse/WW-4481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14386546#comment-14386546 ] Jasper Rosenberg commented on WW-4481: -- Thanks! (Also, for what it is worth, the static invocation I missed was a getter on an Action that was static because it referenced a static member of that action, but was referenced in the template like a normal property). > Deprecated warning gives no context > --- > > Key: WW-4481 > URL: https://issues.apache.org/jira/browse/WW-4481 > Project: Struts 2 > Issue Type: Bug > Components: Value Stack >Affects Versions: 2.3.22 >Reporter: Jasper Rosenberg >Assignee: Lukasz Lenart >Priority: Critical > Fix For: 2.3.23 > > > I released 2.3.22 and immediately had my log files fill up with this warning: > WARN [SecurityMemberAccess] Support for accessing static methods is > deprecated! Please refactor your application! > I was surprised because I thought I had actually removed all static > references, but I can't find what I missed because this warning has no > context. Can you please add the information about the expression being > evaluated so I can track down the usage? Thanks. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (WW-4481) Deprecated warning gives no context
[ https://issues.apache.org/jira/browse/WW-4481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14386377#comment-14386377 ] Hudson commented on WW-4481: SUCCESS: Integrated in Struts-JDK6-develop #137 (See [https://builds.apache.org/job/Struts-JDK6-develop/137/]) WW-4481 Adds context to deprecations warning (lukaszlenart: rev 6021995bfbad1cbf0e6dc16b2d3e19cf9b65011d) * xwork-core/src/main/java/com/opensymphony/xwork2/ognl/SecurityMemberAccess.java > Deprecated warning gives no context > --- > > Key: WW-4481 > URL: https://issues.apache.org/jira/browse/WW-4481 > Project: Struts 2 > Issue Type: Bug > Components: Value Stack >Affects Versions: 2.3.22 >Reporter: Jasper Rosenberg >Assignee: Lukasz Lenart >Priority: Critical > Fix For: 2.3.23 > > > I released 2.3.22 and immediately had my log files fill up with this warning: > WARN [SecurityMemberAccess] Support for accessing static methods is > deprecated! Please refactor your application! > I was surprised because I thought I had actually removed all static > references, but I can't find what I missed because this warning has no > context. Can you please add the information about the expression being > evaluated so I can track down the usage? Thanks. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Resolved] (WW-4481) Deprecated warning gives no context
[ https://issues.apache.org/jira/browse/WW-4481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lukasz Lenart resolved WW-4481. --- Resolution: Fixed Assignee: Lukasz Lenart Done, and lowered level to DEBUG > Deprecated warning gives no context > --- > > Key: WW-4481 > URL: https://issues.apache.org/jira/browse/WW-4481 > Project: Struts 2 > Issue Type: Bug > Components: Value Stack >Affects Versions: 2.3.22 >Reporter: Jasper Rosenberg >Assignee: Lukasz Lenart >Priority: Critical > Fix For: 2.3.23 > > > I released 2.3.22 and immediately had my log files fill up with this warning: > WARN [SecurityMemberAccess] Support for accessing static methods is > deprecated! Please refactor your application! > I was surprised because I thought I had actually removed all static > references, but I can't find what I missed because this warning has no > context. Can you please add the information about the expression being > evaluated so I can track down the usage? Thanks. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (WW-4481) Deprecated warning gives no context
[ https://issues.apache.org/jira/browse/WW-4481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14386343#comment-14386343 ] ASF subversion and git services commented on WW-4481: - Commit 6021995bfbad1cbf0e6dc16b2d3e19cf9b65011d in struts's branch refs/heads/develop from [~lukaszlenart] [ https://git-wip-us.apache.org/repos/asf?p=struts.git;h=6021995 ] WW-4481 Adds context to deprecations warning > Deprecated warning gives no context > --- > > Key: WW-4481 > URL: https://issues.apache.org/jira/browse/WW-4481 > Project: Struts 2 > Issue Type: Bug > Components: Value Stack >Affects Versions: 2.3.22 >Reporter: Jasper Rosenberg >Priority: Critical > Fix For: 2.3.23 > > > I released 2.3.22 and immediately had my log files fill up with this warning: > WARN [SecurityMemberAccess] Support for accessing static methods is > deprecated! Please refactor your application! > I was surprised because I thought I had actually removed all static > references, but I can't find what I missed because this warning has no > context. Can you please add the information about the expression being > evaluated so I can track down the usage? Thanks. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (WW-4481) Deprecated warning gives no context
[ https://issues.apache.org/jira/browse/WW-4481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lukasz Lenart updated WW-4481: -- Fix Version/s: 2.3.23 > Deprecated warning gives no context > --- > > Key: WW-4481 > URL: https://issues.apache.org/jira/browse/WW-4481 > Project: Struts 2 > Issue Type: Bug > Components: Value Stack >Affects Versions: 2.3.22 >Reporter: Jasper Rosenberg >Priority: Critical > Fix For: 2.3.23 > > > I released 2.3.22 and immediately had my log files fill up with this warning: > WARN [SecurityMemberAccess] Support for accessing static methods is > deprecated! Please refactor your application! > I was surprised because I thought I had actually removed all static > references, but I can't find what I missed because this warning has no > context. Can you please add the information about the expression being > evaluated so I can track down the usage? Thanks. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (WW-4482) Conversion annotation ignored for ServletAction parameter
[ https://issues.apache.org/jira/browse/WW-4482?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lukasz Lenart updated WW-4482: -- Fix Version/s: 2.3.23 > Conversion annotation ignored for ServletAction parameter > - > > Key: WW-4482 > URL: https://issues.apache.org/jira/browse/WW-4482 > Project: Struts 2 > Issue Type: Bug > Components: Expression Language, Value Stack >Affects Versions: 2.3.20 >Reporter: Jasper Rosenberg >Priority: Critical > Fix For: 2.3.23 > > > This definitely worked before 2.3.20, but unfortunately I haven’t been able > to track down the actual source of the bug introduced for 2.3.20. My best > guess is that it was introduced when the code was refactored to support > Collections. > Basically I have an Action, with a setter and getter for state that uses a > custom type convertor like so: > {code:java} > /** @return the state. */ > @TypeConversion(converter = "com.myco.typeconvertor.RegionTypeConvertor") > public RegionI getState() { > return state; > } > {code} > When I submit the action, this type convertor is correctly used to turn the > “state” post parameter into a RegionI object which is injected into the > Action. So far so good. > However, the result looks like: > {code:xml} > > confirmAccount > ${streetAddress} > ${city} > ${state} > ${postalCode} > ... > > {code} > And in the latest release, when it evaluates $\{state} it uses the default > type convertor (in this case for an enum because the concrete class is a > USState enum), rather than the com.myco.typeconvertor.RegionTypeConvertor > specified on both the getter and setter for state in the action. -- This message was sent by Atlassian JIRA (v6.3.4#6332)