[ 
https://issues.apache.org/struts/browse/WW-3162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chunyang, Wang updated WW-3162:
-------------------------------


To fix this feature, a proposal for changing method getPackageConfig() in class 
PackageBasedActionConfigBuilder is as follow.

        // Next grab the parent annotation from the class 
                String parentName = null;
                for (Class<?> clazz : 
ReflectionTools.getClassHierarchy(actionClass)) {
                        ParentPackage parent = 
AnnotationTools.findAnnotation(clazz, ParentPackage.class);
                        if (parent != null) {
                                parentName = parent.value();
                        }
                }
                if (LOG.isTraceEnabled() && parentName != null) {
                        LOG.trace("Using non-default parent package from 
annotation of [#0]", parentName);
                }


> Support @ParentPackage inheritance
> ----------------------------------
>
>                 Key: WW-3162
>                 URL: https://issues.apache.org/struts/browse/WW-3162
>             Project: Struts 2
>          Issue Type: New Feature
>          Components: Plugin - Convention
>    Affects Versions: 2.1.7
>            Reporter: Chunyang, Wang
>
> I want to declare an annotation @ParentPackage("app-secure") in supper class, 
> such as BaseSecureAction, so that the sub-classes can use thes ParentPackage 
> and can override ParentPackage if the sub class declare its own one.

-- 
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