-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate binary compat stubs for nullable value classes
aosp/3017515 changed default parameter value class types to be nullable if inline class wraps a non-primitive value. Kotlin encodes nullability into the method mangle, however, and this breaks binary compatibility. This change generates a wrapper function that simply redirects the call. This function will only be called if the module doesn't expect new mangle for the function and will be ignored normally. Fixes: 335384193 ( https://issuetracker.google.com/issues/335384193 ) Test: compiler tests + verified that repro project successfully runs with recompiled artifact. Change-Id: I894651168d0521cdc639d4f4c415b28c4e5d348f ( https://android-review.googlesource.com/q/I894651168d0521cdc639d4f4c415b28c4e5d348f ) Moved from: androidx/androidx@60cef20
- Loading branch information
Showing
7 changed files
with
709 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.