forked from Kotlin/binary-compatibility-validator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Filter out $EntriesMappings class for Kotlin's 1.9 feature 'Enum entr…
…ies' (Kotlin#144) * Filter out $EntriesMappings class for Kotlin's 1.9 feature 'Enum entries' Kotlin compiler generates synthetic class holding EnumEntries starting from 1.9. This change filters out such classes from the API dump. * Upgrade a Kotlin version and remove stdlib exclusion Changed config to make testing of Enum.entries possible. Enum.entries require stdlib >= 1.8.20. Exclusion of stdlib artifacts is only required when Gradle's Kotlin version is higher than the project's one. Fixes Kotlin#141
- Loading branch information
Showing
9 changed files
with
60 additions
and
8 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
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
version=0.13.2-SNAPSHOT | ||
group=org.jetbrains.kotlinx | ||
|
||
kotlinVersion=1.8.10 | ||
kotlinVersion=1.8.20 | ||
pluginPublishVersion=0.10.1 | ||
|
||
kotlin.stdlib.default.dependency=false |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* | ||
* Copyright 2016-2023 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 cases.enums | ||
|
||
enum class EnumClass { A, B, C } |
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,10 @@ | ||
/* | ||
* Copyright 2016-2023 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 cases.enums; | ||
|
||
public enum JavaEnum { | ||
JA, JB, JC | ||
} |
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,13 @@ | ||
package cases.enums | ||
|
||
@OptIn(ExperimentalStdlibApi::class) | ||
fun test() { | ||
EnumClass.entries.forEach { | ||
println(it) | ||
} | ||
|
||
JavaEnum.entries.forEach { | ||
println(it) | ||
} | ||
} | ||
|
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,21 @@ | ||
public final class cases/enums/EntriesKt { | ||
public static final fun test ()V | ||
} | ||
|
||
public final class cases/enums/EnumClass : java/lang/Enum { | ||
public static final field A Lcases/enums/EnumClass; | ||
public static final field B Lcases/enums/EnumClass; | ||
public static final field C Lcases/enums/EnumClass; | ||
public static fun getEntries ()Lkotlin/enums/EnumEntries; | ||
public static fun valueOf (Ljava/lang/String;)Lcases/enums/EnumClass; | ||
public static fun values ()[Lcases/enums/EnumClass; | ||
} | ||
|
||
public final class cases/enums/JavaEnum : java/lang/Enum { | ||
public static final field JA Lcases/enums/JavaEnum; | ||
public static final field JB Lcases/enums/JavaEnum; | ||
public static final field JC Lcases/enums/JavaEnum; | ||
public static fun valueOf (Ljava/lang/String;)Lcases/enums/JavaEnum; | ||
public static fun values ()[Lcases/enums/JavaEnum; | ||
} | ||
|
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