Skip to content

17.3.x - #231

Merged
xlorne merged 3 commits into
mainfrom
17.3.x
Nov 17, 2026
Merged

17.3.x#231
xlorne merged 3 commits into
mainfrom
17.3.x

Conversation

@xlorne

@xlorne xlorne commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Describe what this PR does / why we need it

Does this pull request fix one issue?

Describe how you did it

Describe how to verify it

Special notes for reviews

- ApplicationHandlerUtils 对 lambda / JDK 动态代理等无法解析泛型参数的 Handler,
  不再退化为「订阅全部事件」,改为跳过并输出一次性告警,避免投递不相关事件后
  抛出 ClassCastException;
- 新增 removeHandlers,SpringDefaultEventHandler 实现 DisposableBean,在上下文
  销毁时注销自己注册的 Handler 并关闭线程池,消除静态注册表跨上下文残留;
- EventOrderE2ETest 的 Handler 改为具名类,补充订阅类型匹配与注销的回归测试;
- 事件驱动规范补充 Handler 不得以 lambda 形式注册的说明。

Closes #228
…cribe-17x

Feature/issue 228 handler subscribe 17x
@xlorne
xlorne merged commit 7308094 into main Nov 17, 2026
4 checks passed
@codecov

codecov Bot commented Nov 17, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 90.00000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 87.48%. Comparing base (abf66f8) to head (b9a9af6).
⚠️ Report is 9 commits behind head on main.

Files with missing lines Patch % Lines
...gboot/framework/event/ApplicationHandlerUtils.java 85.71% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #231      +/-   ##
============================================
+ Coverage     87.36%   87.48%   +0.12%     
- Complexity     2177     2209      +32     
============================================
  Files           215      216       +1     
  Lines          5944     6019      +75     
  Branches        408      417       +9     
============================================
+ Hits           5193     5266      +73     
+ Misses          603      602       -1     
- Partials        148      151       +3     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

1 participant