sofastack / sofa-serverless

a framework to enabe app architecture evolve from monolithic to microservices smoothly by involving modular and macroservices architecture.
https://sofaserverless.gitee.io/home/
Apache License 2.0
115 stars 41 forks source link

fix bug 442,invoke producted method error #444

Closed qq290584697 closed 8 months ago

qq290584697 commented 8 months ago

fix #442 如果基座提供的bean被代理,业务模块通过@AutowrideFromBase获取bean,且引用的是实现类,而不是接口的情况下。 如果该bean有调用自身的producted方法,因为该bean被代理,会抛出无法访问的异常。 所以需要通过反射,强制允许该方法访问。

sofastack-cla[bot] commented 8 months ago

Hi @qq290584697, welcome to SOFAStack community, Please sign Contributor License Agreement!

After you signed CLA, we will automatically sync the status of this pull request in 3 minutes.

codecov[bot] commented 8 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (63cbe92) 80.95% compared to head (0e046d3) 80.89%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #444 +/- ## ============================================ - Coverage 80.95% 80.89% -0.07% + Complexity 66 65 -1 ============================================ Files 45 45 Lines 1029 1031 +2 Branches 90 90 ============================================ + Hits 833 834 +1 Misses 145 145 - Partials 51 52 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.