[
https://issues.apache.org/jira/browse/WW-3496?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12907465#action_12907465
]
John Lindal commented on WW-3496:
---------------------------------
Same for this:
public Object findValue(String expr, Class asType) {
return ctx.get(expr);
}
public Object findValue(String expr, Class asType, boolean
throwExceptionOnFailure) {
return findValue(expr, asType, false);
}
It should be:
public Object findValue(String expr, Class asType) {
return findValue(expr, asType, false);
}
public Object findValue(String expr, Class asType, boolean
throwExceptionOnFailure) {
return ctx.get(expr);
}
> StubValueStack.findValue(expr,throw) calls itself
> -------------------------------------------------
>
> Key: WW-3496
> URL: https://issues.apache.org/jira/browse/WW-3496
> Project: Struts 2
> Issue Type: Bug
> Components: Value Stack
> Affects Versions: 2.2.1
> Reporter: John Lindal
> Priority: Minor
>
> The code in 2.2.1 is:
> public Object findValue(String expr) {
> return ctx.get(expr);
> }
> public Object findValue(String expr, boolean throwExceptionOnFailure) {
> return findValue(expr, false);
> }
> I'm pretty sure it ought to be:
> public Object findValue(String expr) {
> return findValue(expr, false);
> }
> public Object findValue(String expr, boolean throwExceptionOnFailure) {
> return ctx.get(expr);
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.