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.

Copy link

sonarcloud bot commented Oct 22, 2024

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