8000 Add tests for Kotlin codegen with package-private type arguments and bounds. by copybara-service[bot] · Pull Request #5355 · google/dagger · GitHub
[go: up one dir, main page]

Skip to content

Add tests for Kotlin codegen with package-private type arguments and bounds. - #5355

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_1019477081
Nov 12, 2026
Merged

copybara-service[bot] merged 1 commit into
masterfrom
test_1019477081

Conversation

@copybara-service
Copy link
Copy Markdown

Add tests for Kotlin codegen with package-private type arguments and bounds.

These tests demonstrate the current limitations in Kotlin codegen before dropping type parameters and preserving public and star-projected types in generated factories and members injectors (b/438765237, b/378258275):

  • Generic classes and producer modules with package-private cyclic recursive bounds fail Kotlin compilation because the generated _MembersInjector, _ProducesFactory, and _Factory classes expose the package-private bound on their public type parameters.
  • Generated factories for public types with package-private dependencies or type arguments currently fall back to Any? in their public signatures instead of preserving public and star-projected types.

RELNOTES=N/A

…bounds.

These tests demonstrate the current limitations in Kotlin codegen before dropping type parameters and preserving public and star-projected types in generated factories and members injectors (b/438765237, b/378258275):
- Generic classes and producer modules with package-private cyclic recursive bounds fail Kotlin compilation because the generated `_MembersInjector`, `_ProducesFactory`, and `_Factory` classes expose the package-private bound on their public type parameters.
- Generated factories for public types with package-private dependencies or type arguments currently fall back to `Any?` in their public signatures instead of preserving public and star-projected types.

RELNOTES=N/A
PiperOrigin-RevId: 1020514369
@copybara-service
copybara-service Bot merged commit c4ca40d into master Nov 12, 2026
7 checks passed
@copybara-service
copybara-service Bot deleted the test_1019477081 branch November 12, 2026 23:53
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

0