Commit 058b079
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).
PiperOrigin-RevId: 9156316091 parent e5a0a12 commit 058b079
1 file changed
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
173 | 190 | | |
174 | 191 | | |
175 | 192 | | |
| |||
0 commit comments