Skip to content

3.0.0-M1 Removals #162

@fabapp2

Description

@fabapp2

https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0.0-M1-Release-Notes#miscellaneous

Apart from the changes listed above, there have also been some minor tweaks and improvements including:

  • Support for Java’s SecurityManager has been removed following its deprecation in the JDK
  • Support for Spring Framework’s CommonsMultipartResolver has been removed following its removal in Spring Framework 6

What needs to be done

  • How to find out if SecurityManager is used?
  • How to find out if CommonsMultipartResolver is used?

SecurityManager

Finder

Find System.getSecurityManager() or AccessControlException (potential contribution)

Implementation
  • Implement the Finder as OpenRewriteRecipe adding Markers to the matching locations
  • Let the `Sbm30_Finder´ implementation use the finder recipe

Recipe

None

Report

Inform the user about the potential usage of SecurityManager and that this class was removed.

CommonsMultipartResolver

Finder

Find bean definitions of type CommonsMultipartResolver

Implementation
  • Create a new OpenRewrite Finder recipe that finds/marks Spring bean declarations by type (potential contribution)
  • Let the `Sbm30_Finder´ implementation use the finder recipe
  • Create a ProjectResourceFinder delegating to the recipe to find Spring bean declarations by type using the ProjectContext

Recipe

Remove beans of type CommonsMultipartResolver

Implementation
  • Create OpenRewrite recipe RemoveCommonsMultipartResolverBeanDeclarations that uses the finder and removes bean declaration methods (potential contribution)
  • Link the recipe as named recipe in the upgrade recipe yaml

Report

Suggest to remove CommonsMultipartResolver bean and relying on Spring Boot auto-configuration

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions