Skip to content

Fix Dagger multibinding duplicate tracking for Maps#5167

Merged
copybara-service[bot] merged 1 commit into
gh-pagesfrom
test_gh-pages_902749242
May 14, 2026
Merged

Fix Dagger multibinding duplicate tracking for Maps#5167
copybara-service[bot] merged 1 commit into
gh-pagesfrom
test_gh-pages_902749242

Conversation

@copybara-service
Copy link
Copy Markdown

Fix Dagger multibinding duplicate tracking for Maps

Currently, Dagger only verifies duplicate map key contributions within the same component. Contributions with duplicate keys across the component hierarchy are ignored, resulting in masked values or runtime crashes when backed by Guava.

This change introduces strict duplicate detection across the full map binding graph. Dagger now performs compile-time verification to reject duplicate map keys across the entire component hierarchy.

This behavior is controlled by the new compiler option -Adagger.mapMultibindingDuplicateDetectionFix. When enabled, strict duplicate tracking is enforced across the component hierarchy.

RELNOTES=Fixed Dagger multibinding duplicate masking across Map components (compile-time validation).

Currently, Dagger only verifies duplicate map key contributions within the same component. Contributions with duplicate keys across the component hierarchy are ignored, resulting in masked values or runtime crashes when backed by Guava.

This change introduces strict duplicate detection across the full map binding graph. Dagger now performs compile-time verification to reject duplicate map keys across the entire component hierarchy.

This behavior is controlled by the new compiler option -Adagger.mapMultibindingDuplicateDetectionFix. When enabled, strict duplicate tracking is enforced across the component hierarchy.

RELNOTES=Fixed Dagger multibinding duplicate masking across Map components (compile-time validation).
PiperOrigin-RevId: 915631609
@copybara-service copybara-service Bot force-pushed the test_gh-pages_902749242 branch from 97d129e to 058b079 Compare May 14, 2026 21:57
@copybara-service copybara-service Bot merged commit 058b079 into gh-pages May 14, 2026
@copybara-service copybara-service Bot deleted the test_gh-pages_902749242 branch May 14, 2026 21:57
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