You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or 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
@Godin I wonder whether you test scenario is already covered by the existing validation target KotlinDefaultArgumentsTarget? Will the existing target fail when we upgrade to Kotlin 1.5?
I wonder whether you test scenario is already covered by the existing validation target KotlinDefaultArgumentsTarget? Will the existing target fail when we upgrade to Kotlin 1.5?
@marchof yes it is, before this change when executing
mvn clean package -Dkotlin.version=1.5.0-M1
we'll get
Failed tests:
execute_assertions_in_comments(org.jacoco.core.test.validation.kotlin.KotlinDefaultArgumentsTest): Branches (KotlinDefaultArgumentsTarget.kt:20) expected:<Counter[0/0]> but was:<Counter[0/4]>
among other differences that I currently investigate, and this test will pass after this change.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For the following
Example.ktExecution of
using Kotlin compiler versions before
1.5-M1(tested versions from1.3.0to1.4.30) produceswhereas using Kotlin compiler version
1.5.0-M1produceswhere
LineNumberTableis different1.5-M1line number is in the middle of the methods1.5-M1is at the beginning of the methodsKotlinDefaultArgumentsFiltercurrently doesn't handle last case, because ofjacoco/org.jacoco.core/src/org/jacoco/core/internal/analysis/filter/KotlinDefaultArgumentsFilter.java
Line 85 in 66b5fa9
and
jacoco/org.jacoco.core/src/org/jacoco/core/internal/analysis/filter/KotlinDefaultArgumentsFilter.java
Line 105 in 66b5fa9
So execution of
produces following report
Report will be same after this change for Kotlin compiler version
1.5-M1as for previous versions