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 4 #1083

Merged
merged 6 commits into from
Oct 22, 2024
Merged

Conversation

kusalk
Copy link
Member

@kusalk kusalk commented Oct 17, 2024

WW-3714

This PR deprecates and provides a repackaged replacement for the following API, ahead of its permanent migration in Struts 7.0:

  • com.opensymphony.xwork2.util.ValueStack

It additionally does the same for the following Action marker interfaces:

  • com.opensymphony.xwork2.ModelDriven
  • com.opensymphony.xwork2.Preparable
  • com.opensymphony.xwork2.Unchainable
  • com.opensymphony.xwork2.Validateable
  • com.opensymphony.xwork2.interceptor.ScopedModelDriven
  • com.opensymphony.xwork2.interceptor.ValidationAware
  • com.opensymphony.xwork2.interceptor.ValidationErrorAware
  • com.opensymphony.xwork2.interceptor.ValidationWorkflowAware

Please refer to #1081 for the techniques and methodology employed in this PR.

With respect to the Action marker interfaces, it is necessary to replace the imports for these types wherever they are employed in an instanceof check within Struts internal code such as interceptors. Since the deprecated com.opensymphony.xwork2 types extend the new org.apache.struts2 type, by ensuring any instanceof checks use the new type, it will function correctly for both marker interface variations.

@kusalk kusalk force-pushed the kusal-depr-apis-5 branch from 07ca408 to e978d8f Compare October 17, 2024 05:18
@kusalk kusalk force-pushed the kusal-depr-apis-4 branch from 421cce6 to e7e0178 Compare October 17, 2024 06:22
@kusalk kusalk force-pushed the kusal-depr-apis-5 branch from e978d8f to bb459bf Compare October 17, 2024 06:27
@kusalk kusalk force-pushed the kusal-depr-apis-4 branch from e7e0178 to f4dec59 Compare October 17, 2024 06:36
@kusalk kusalk force-pushed the kusal-depr-apis-5 branch 2 times, most recently from 54659ba to cf24fd3 Compare October 17, 2024 08:36
@kusalk kusalk force-pushed the kusal-depr-apis-4 branch from f4dec59 to cc0038b Compare October 17, 2024 09:09
@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-4 branch from cc0038b to 688a8da Compare October 17, 2024 09:28
@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-4 branch from 688a8da to 14bd4b8 Compare October 22, 2024 02:55
@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-5 branch from 08174b5 to 2757c23 Compare October 22, 2024 06:02
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
23.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-4 to master October 22, 2024 12:11
@kusalk kusalk merged commit 5b81ec0 into master Oct 22, 2024
7 of 9 checks passed
@kusalk kusalk deleted the kusal-depr-apis-5 branch October 22, 2024 12:11
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