Summary
The shrink-survival test module pins R8 8.9.35, which emits non-fatal Info/Warning lines
during the shrink run reporting that it cannot parse Kotlin 2.3 @Metadata (R8 8.9.x supports
Kotlin metadata up to 2.1).
This does not affect output correctness — the @Metadata annotation is retained via
-keepattributes RuntimeVisibleAnnotations and -keep class kotlin.Metadata, and the shrunk
program's Jackson Kotlin-reflection round-trip passes — but it adds log noise to every shrink run
and could mask a genuinely relevant warning.
Suggested direction
Bump the r8 version in gradle/libs.versions.toml to a release whose Kotlin-metadata support
covers the Kotlin version this project compiles with (currently 2.3), once such a release is
available, and confirm the shrink-survival run is quiet. Until then the warnings are expected and
harmless.
Follow-up to the R8 shrink-survival module (PR adding sdk-shrink-test).
Summary
The shrink-survival test module pins R8
8.9.35, which emits non-fatalInfo/Warninglinesduring the shrink run reporting that it cannot parse Kotlin 2.3
@Metadata(R8 8.9.x supportsKotlin metadata up to 2.1).
This does not affect output correctness — the
@Metadataannotation is retained via-keepattributes RuntimeVisibleAnnotationsand-keep class kotlin.Metadata, and the shrunkprogram's Jackson Kotlin-reflection round-trip passes — but it adds log noise to every shrink run
and could mask a genuinely relevant warning.
Suggested direction
Bump the
r8version ingradle/libs.versions.tomlto a release whose Kotlin-metadata supportcovers the Kotlin version this project compiles with (currently 2.3), once such a release is
available, and confirm the shrink-survival run is quiet. Until then the warnings are expected and
harmless.
Follow-up to the R8 shrink-survival module (PR adding
sdk-shrink-test).