Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WW-3714 Deprecate and repackage common APIs part 5 #1084

Merged
merged 4 commits into from
Oct 23, 2024
Merged

Conversation

kusalk
Copy link
Member

@kusalk kusalk commented Oct 17, 2024

WW-3714

This PR deprecates and provides repackaged replacements for the following APIs, ahead of their permanent migration in Struts 7.0:

  • com.opensymphony.xwork2.ActionSupport
  • com.opensymphony.xwork2.interceptor.AbstractInterceptor
  • com.opensymphony.xwork2.interceptor.MethodFilterInterceptor
  • com.opensymphony.xwork2.interceptor.MethodFilterInterceptorUtil

I've also added alternative constructors to the following class which should unblock certain unit tests:

  • com.opensymphony.xwork2.config.entities.InterceptorMapping

Note that the techniques employed in this PR are slightly different to that of the previous PRs where we were working with interfaces rather than concrete classes. For example, I've taken care to preserve the class inheritance hierarchy of com.opensymphony.xwork2.interceptor.MethodFilterInterceptor to ensure compatibility with any potential overriding classes. This necessitated that the implementation was duplicated rather than extending its org.apache.struts2 counterpart.

@kusalk kusalk changed the title Deprecate and repackage common APIs part 5 WW-3714 Deprecate and repackage common APIs part 5 Oct 17, 2024
Copy link

sonarcloud bot commented Oct 22, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
46.3% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

@kusalk kusalk marked this pull request as ready for review October 22, 2024 07:08
Base automatically changed from kusal-depr-apis-5 to master October 22, 2024 12:11
@kusalk kusalk merged commit 67ee1b2 into master Oct 23, 2024
8 of 9 checks passed
@kusalk kusalk deleted the kusal-depr-apis-6 branch October 23, 2024 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants