ishankhemani opened a new pull request, #15889:
URL: https://github.com/apache/dubbo/pull/15889

   ### What does this PR do?
   
   This PR fixes a Spring type resolution issue where 
`ReferenceBean#getObjectType()`
   could return an incompatible or undefined type, which may lead to
   `BeanNotOfRequiredTypeException` during dependency injection.
   
   A regression test is added to ensure that a Spring application context
   can start successfully when `@DubboReference` is injected into a
   constructor-managed bean.
   
   ### Why is this needed?
   
   Spring relies on `FactoryBean#getObjectType()` for bean type matching.
   Returning an incorrect or null type can cause bean creation failures
   during context initialization.
   
   ### How was this tested?
   
   - Added `ReferenceBeanTypeInjectionTest`
   - All existing tests pass
   
   ### Additional notes
   
   - No UI changes
   - No screenshots required
   
   Fixes #12637
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to