Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the logic for computing the number of int default-value bitmasks in a Kotlin constructor. #1807

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

copybara-service[bot]
Copy link
Contributor

Fix the logic for computing the number of int default-value bitmasks in a Kotlin constructor.

There are ⌈n/32⌉ int bitmasks when the total number of parameters is n. Previously the logic was based on n being the number of optional parameters (the ones with default values).

RELNOTES=A bug with AutoBuilder and Kotlin data classes has been fixed. If there was a mix of required and optional parameters in a data class with a large number of properties, sometimes the generated code would not compile.

…s in a Kotlin constructor.

There are ⌈_n_/32⌉ `int` bitmasks when the total number of parameters is _n_. Previously the logic was based on _n_ being the number of _optional_ parameters (the ones with default values).

RELNOTES=A bug with AutoBuilder and Kotlin data classes has been fixed. If there was a mix of required and optional parameters in a data class with a large number of properties, sometimes the generated code would not compile.
PiperOrigin-RevId: 651226198
@copybara-service copybara-service bot merged commit ad284f6 into main Jul 11, 2024
@copybara-service copybara-service bot deleted the test_main_651098596 branch July 11, 2024 02:08
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.

None yet

1 participant