Skip to content

Invoke annotated lifecycle callbacks first in AOT mode - #37821

Open
wozhenbang2004 wants to merge 1 commit into
spring-projects:mainfrom
wozhenbang2004:fix/aot-lifecycle-callback-order-30755
Open

wozhenbang2004 wants to merge 1 commit into
spring-projects:mainfrom
wozhenbang2004:fix/aot-lifecycle-callback-order-30755

Conversation

@wozhenbang2004

Copy link
Copy Markdown

Invoke annotation-discovered lifecycle callbacks before the remaining
interface and configured callbacks in AOT mode. Dispatch annotated
interface callbacks at their position in the lifecycle sequence. Keep
other destruction callbacks running when an annotated interface callback
throws.

Regression tests cover inherited callbacks, callbacks that would
otherwise run twice, and a failing annotated close callback between
other annotated callbacks.

See #30755.

Invoke annotation-discovered lifecycle callbacks before the remaining
interface and configured callbacks in AOT mode. Dispatch annotated
interface callbacks at their position in the lifecycle sequence and
continue with the remaining destruction stages if one throws.

See spring-projectsgh-30755

Signed-off-by: kayokoi Zhang <113896798+wozhenbang2004@users.noreply.github.com>
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Dec 3, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting-for-triage An issue we've not yet triaged or decided on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants