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
@kusalk kusalk force-pushed the kusal-depr-apis-6 branch from 89c0930 to da0934f Compare October 17, 2024 06:16
@kusalk kusalk force-pushed the kusal-depr-apis-5 branch 2 times, most recently from bb459bf to 41792fc Compare October 17, 2024 06:36
@kusalk kusalk force-pushed the kusal-depr-apis-6 branch 3 times, most recently from 882eb16 to f908a32 Compare October 17, 2024 08:32
@kusalk kusalk force-pushed the kusal-depr-apis-5 branch from 54659ba to cf24fd3 Compare October 17, 2024 08:36
@kusalk kusalk force-pushed the kusal-depr-apis-6 branch from f908a32 to 717046f Compare October 17, 2024 08:36
@kusalk kusalk force-pushed the kusal-depr-apis-5 branch from cf24fd3 to 44855ca Compare October 17, 2024 09:09
@kusalk kusalk force-pushed the kusal-depr-apis-6 branch from 717046f to f8dc1ce Compare October 17, 2024 09:10
@kusalk kusalk force-pushed the kusal-depr-apis-5 branch from 44855ca to 4b17882 Compare October 17, 2024 09:28
@kusalk kusalk force-pushed the kusal-depr-apis-6 branch from f8dc1ce to a874416 Compare October 17, 2024 09:29
@kusalk kusalk force-pushed the kusal-depr-apis-5 branch from 4b17882 to ebedd73 Compare October 22, 2024 02:55
@kusalk kusalk force-pushed the kusal-depr-apis-6 branch 2 times, most recently from 1dea3d3 to 228d33e Compare October 22, 2024 05:55
@kusalk kusalk force-pushed the kusal-depr-apis-5 branch from 08174b5 to 2757c23 Compare October 22, 2024 06:02
@kusalk kusalk force-pushed the kusal-depr-apis-6 branch from 228d33e to deb6c09 Compare October 22, 2024 06:02
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 requested a review from lukaszlenart 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