You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support constructor method-level qualifiers in BcParameterQualifier (#308)
This change enhances backward compatibility by allowing method-level
Qualifier attributes on constructors, addressing the issue where
packages like bear/streamer use Qualifier-only attributes (without
InjectInterface) on single-parameter constructors.
Key changes:
- Remove TARGET_PARAMETER requirement: Method-level qualifiers no
longer need to support TARGET_PARAMETER, as they are meant to be
used at the method level
- Add constructor-specific logic: For constructors, Qualifier-only
attributes are sufficient since InjectInterface is implicit
- For setters: Still require InjectInterface + Qualifier combination
All changes are confined to src-deprecated/ directory, keeping the
core codebase clean. This embodies Ray.Di's BC (backward compatibility)
philosophy.
Test updates:
- Add constructor test case with Qualifier-only attribute
- Update existing tests to reflect new Qualifier inference behavior
- Fix binding declarations in test modules
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments