Skip to content

Improve sample to demonstrate branch increase after kotlin upgrade - #140

Open
neworld wants to merge 1 commit into
jacoco:mainfrom
neworld:repro/kotlin_upgrade_branch_increase
Open

Improve sample to demonstrate branch increase after kotlin upgrade#140
neworld wants to merge 1 commit into
jacoco:mainfrom
neworld:repro/kotlin_upgrade_branch_increase

Conversation

@neworld

@neworld neworld commented Jul 20, 2026

Copy link
Copy Markdown

Upgrading Kotlin 2.3.21 → 2.4.10 changes the JaCoCo branch count for identical source and test:

Kotlin branches covered/total
2.3.21 10/14 (71.4%)
2.4.10 14/20 (70.0%)

The extra branches appear on the Button(onClick = { line: the Kotlin 2.4 Compose compiler generates different bytecode Reproduce by switching kotlin between 2.3.21 and 2.4.10 and run ./gradlew test jacocoTestReport.

This effect cause big drop in branch coverage in our main project.

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.

1 participant