You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (Jira)" <ji...@apache.org> on 2026/02/21 17:19:00 UTC

[jira] [Resolved] (WW-4421) Duplicate @Action value annotation check skipped

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

Lukasz Lenart resolved WW-4421.
-------------------------------
    Resolution: Fixed

> Duplicate @Action value annotation check skipped
> ------------------------------------------------
>
>                 Key: WW-4421
>                 URL: https://issues.apache.org/jira/browse/WW-4421
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Annotations, Plugin - Convention
>    Affects Versions: 2.3.16.3
>            Reporter: Sebastian Haas
>            Assignee: Lukasz Lenart
>            Priority: Major
>             Fix For: 6.9.0, 7.2.0
>
>         Attachments: MethodCheckFailsOnStartup.java, MethodCheckSkippedOnStartup.java
>
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> {{PackageBasedActionConfigBuilder#buildConfiguration}} checks if there are duplicate action names on method annotations. If {{ActionSupport#execute}} is overridden and annotated with {{@Action}}, the duplicate action name check is skipped.
> The check is disabled due to {code:title=PackageBasedActionConfigBuilder.java:674}if (!map.containsKey(DEFAULT_METHOD){code}
> Having duplicate action names leads to different behavior with Java 7 or Java 8 environment (due to reflection method order).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)