Result/Results annotations do not override on subclasses
--------------------------------------------------------

                 Key: WW-2559
                 URL: https://issues.apache.org/struts/browse/WW-2559
             Project: Struts 2
          Issue Type: Bug
    Affects Versions: 2.0.11.1
            Reporter: David Waite


The ClasspathConfigurationProvider's ResultMap scans for Result and Results 
annotations on the class, going up the inheritance chain. However, this means 
that any annotations on a parent will write over annotations on the child.

Example:
@Result("/foo.jsp)
public class FooAction {
   public String execute {
       return "success";
   }
}
...
@Result("/bar.jsp")
public class BarAction extends FooAction {
}

the success result will always render foo.jsp, whether you are invoking 
FooAction or BarAction

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to