alibaba / alibaba/spring-context-support

InstantiationAwareBeanPostProcessorAdapter @Deprecated and remove in spring6

Open
#50 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
155
Forks
87
PR merge metrics
No merged PRs in 30d

Description

AbstractAnnotationBeanPostProcessor extends InstantiationAwareBeanPostProcessorAdapter

can not start at spring6

[Official description]( https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/beans/factory/config/InstantiationAwareBeanPostProcessorAdapter.html)

[@Deprecated](https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true)
public abstract class InstantiationAwareBeanPostProcessorAdapter
extends [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true)
implements [SmartInstantiationAwareBeanPostProcessor](https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/beans/factory/config/SmartInstantiationAwareBeanPostProcessor.html)
Adapter that implements all methods on [SmartInstantiationAwareBeanPostProcessor](https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/beans/factory/config/SmartInstantiationAwareBeanPostProcessor.html) as no-ops, which will not change normal processing of each bean instantiated by the container. Subclasses may override merely those methods that they are actually interested in.
Note that this base class is only recommendable if you actually require [InstantiationAwareBeanPostProcessor](https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/beans/factory/config/InstantiationAwareBeanPostProcessor.html) functionality. If all you need is plain [BeanPostProcessor](https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/beans/factory/config/BeanPostProcessor.html) functionality, prefer a straight implementation of that (simpler) interface.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating AbstractAnnotationBeanPostProcessor and its inheritance from InstantiationAwareBeanPostProcessorAdapter. Check the Spring 6 startup failure and the linked API documentation; done means the deprecated adapter dependency is removed or replaced and the project starts successfully on Spring 6.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
backend
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.