Skip to content

Fix bug in DaggerSuperficialValidation.validateTypeHierarchy(). - #5228

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_952556309
Jul 27, 2026
Merged

Fix bug in DaggerSuperficialValidation.validateTypeHierarchy().#5228
copybara-service[bot] merged 1 commit into
masterfrom
test_952556309

Conversation

@copybara-service

Copy link
Copy Markdown

Fix bug in DaggerSuperficialValidation.validateTypeHierarchy().

In Javac, Types.directSupertypes() does not include error types. This causes DaggerSuperficialValidation.validateTypeHierarchy() to think the hierarchy is valid even when there are actually error types.

To fix this, I've added validation of TypeElement.getSuperClass() and TypeElement.getSuperInterfaces() since those contain the error type in Javac.

RELNOTES=N/A

@copybara-service
copybara-service Bot force-pushed the test_952556309 branch 5 times, most recently from 43114d5 to 978cf49 Compare July 27, 2026 19:28
In Javac, `Types.directSupertypes()` does not include error types. This causes `DaggerSuperficialValidation.validateTypeHierarchy()` to think the hierarchy is valid even when there are actually error types.

To fix this, I've added validation of `TypeElement.getSuperClass()` and `TypeElement.getSuperInterfaces()` since those contain the error type in Javac.

RELNOTES=N/A
PiperOrigin-RevId: 954780872
@copybara-service
copybara-service Bot merged commit 3ed0a4c into master Jul 27, 2026
@copybara-service
copybara-service Bot deleted the test_952556309 branch July 27, 2026 19:54
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