Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-4421

Duplicate @Action value annotation check skipped

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      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

      PackageBasedActionConfigBuilder.java:674
      if (!map.containsKey(DEFAULT_METHOD)

      Having duplicate action names leads to different behavior with Java 7 or Java 8 environment (due to reflection method order).

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            sha/silbergrau Sebastian Haas

            Dates

              Created:
              Updated:

              Slack

                Issue deployment