Fixed
Status Update
Comments
as...@google.com <as...@google.com> #2
I think hardcoded list of classes might be overriding ones provided by the config. Ben, can you take a look?
be...@google.com <be...@google.com>
ap...@google.com <ap...@google.com> #3
Project: platform/frameworks/support
Branch: androidx-main
commit 3030beac7f68cc08154e86072775a007aaae3b06
Author: Ben Trengrove <bentrengrove@google.com>
Date: Tue Mar 05 11:23:47 2024
Fix nested external generic types being inferred Unstable
currentlyAnalysing didn't contain any information about the typeParameters.
When checking of the members of B, List was returning unstable as List was already
being analyzed. Added type parameter info to the currently analyzing Set to fix this.
Also fixed localSrc not taking into account externalTypes when being compiled in tests.
Fixes: 327643787
Test: testNestedExternalTypesAreStable
Relnote: Fix nested external generic types being inferred Unstable
Change-Id: I3437fad769ba3eee58a299584ac4e352a3173b0f
M compose/compiler/compiler-hosted/integration-tests/src/jvmTest/kotlin/androidx/compose/compiler/plugins/kotlin/ClassStabilityTransformTests.kt
M compose/compiler/compiler-hosted/src/main/java/androidx/compose/compiler/plugins/kotlin/ComposePlugin.kt
M compose/compiler/compiler-hosted/src/main/java/androidx/compose/compiler/plugins/kotlin/analysis/Stability.kt
https://android-review.googlesource.com/2988009
Branch: androidx-main
commit 3030beac7f68cc08154e86072775a007aaae3b06
Author: Ben Trengrove <bentrengrove@google.com>
Date: Tue Mar 05 11:23:47 2024
Fix nested external generic types being inferred Unstable
currentlyAnalysing didn't contain any information about the typeParameters.
When checking of the members of B, List was returning unstable as List was already
being analyzed. Added type parameter info to the currently analyzing Set to fix this.
Also fixed localSrc not taking into account externalTypes when being compiled in tests.
Fixes: 327643787
Test: testNestedExternalTypesAreStable
Relnote: Fix nested external generic types being inferred Unstable
Change-Id: I3437fad769ba3eee58a299584ac4e352a3173b0f
M compose/compiler/compiler-hosted/integration-tests/src/jvmTest/kotlin/androidx/compose/compiler/plugins/kotlin/ClassStabilityTransformTests.kt
M compose/compiler/compiler-hosted/src/main/java/androidx/compose/compiler/plugins/kotlin/ComposePlugin.kt
M compose/compiler/compiler-hosted/src/main/java/androidx/compose/compiler/plugins/kotlin/analysis/Stability.kt
pr...@google.com <pr...@google.com> #4
The following release(s) address this bug.It is possible this bug has only been partially addressed:
androidx.compose.compiler:compiler-hosted:1.5.11
Description
Versions
Steps to Reproduce or Code Sample to Reproduce:
List
s stable by Stability Configuration fileStability configuration file
Used
data class
Output stability
Expected behavior
As the
Item
is stable thanks to forcedList
stability I would expect to have theUiState
stable as it contains list (stable) of stable classes. Am I missing something?