-
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.
[ABI Validation] Fix false positive for const val with non-public marker
Closes Kotlin/binary-compatibility-validator#90 Pull request Kotlin/binary-compatibility-validator#245
- Loading branch information
1 parent
bcf8ab3
commit c854272
Showing
7 changed files
with
133 additions
and
5 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
11 changes: 11 additions & 0 deletions
11
...ies/tools/abi-validation/src/functionalTest/resources/examples/classes/ConstProperty.dump
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
public final class foo/Foo { | ||
public static final field Companion Lfoo/Foo$Companion; | ||
public fun <init> ()V | ||
} | ||
|
||
public final class foo/Foo$Companion { | ||
} | ||
|
||
public abstract interface annotation class foo/HiddenProperty : java/lang/annotation/Annotation { | ||
} | ||
|
15 changes: 15 additions & 0 deletions
15
...aries/tools/abi-validation/src/functionalTest/resources/examples/classes/ConstProperty.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* | ||
* Copyright 2016-2022 JetBrains s.r.o. | ||
* Use of this source code is governed by the Apache 2.0 License that can be found in the LICENSE.txt file. | ||
*/ | ||
package foo | ||
|
||
@Target(AnnotationTarget.PROPERTY) | ||
annotation class HiddenProperty | ||
|
||
public class Foo { | ||
companion object { | ||
@HiddenProperty | ||
const val bar = "barValue" | ||
} | ||
} |
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
17 changes: 17 additions & 0 deletions
17
libraries/tools/abi-validation/src/test/kotlin/cases/companions/companions.txt
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