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

Commits on Jul 11, 2024

  1. Fix the logic for computing the number of int default-value bitmask…

    …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
    eamonnmcmanus authored and Google Java Core Libraries committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    ad284f6 View commit details
    Browse the repository at this point in the history