Logged in JIRA as WW-2443

blakeb wrote:
> 
> Sorry, that was in the ClasspathPackageProvider class.
> 
> Thanks for your help.
> Blake
> 
> 
> blakeb wrote:
>> 
>> I'm in edge struts 2 (2.1.1-SNAPSHOT), so I'm not sure if this is a
>> problem in 2.0.11.
>> 
>> When using codebehind, I expected that if a parent class has a @Result
>> annotation with a given name, and a child class has a Result annotation
>> with the same name, that the child annotation would "override" any parent
>> results of the same name.  This would seem like expected inheritence
>> behavior (at least to me).  It appears that annotations are being taken
>> in the opposite order (parent overrides child setting).
>> 
>> Looking through the code, it looks like when the ResultMap is being
>> created, it loops from the current class to the superclass, each time
>> overwriting with parent class results.  Is this something intended, or
>> can it be changed to work in reverse?  The change is simple - just do a
>> check if the entry already exists in the map before inserting.
>> 
>> Should I log a JIRA issue?
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/CodeBehind-Inherit-Parent-Actions-tp14946931p14947108.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to