Slackbot
08/10/2023, 2:18 PMAdam
08/10/2023, 2:40 PMProperty<MyEnum> https://github.com/KengoTODA/mcve-assign-extension-fun/blob/ac63a9dfa7bc40a82d17d23a6bbb7ca9780dec36/plugin/src/main/kotlin/com/example/MyTask.kt#L10, so the assign() extension function doesn't applyVampire
08/10/2023, 2:54 PMProperty<MyEnum> makes the tests passVampire
08/10/2023, 2:56 PMKengo TODA
08/10/2023, 9:13 PMKengo TODA
08/10/2023, 9:56 PMassign extension for two enum classes:
e: file:///Users/kengo/GitHub/spotbugs-gradle-plugin/src/main/kotlin/com/github/spotbugs/snom/Extensions.kt:5:1 Platform declaration clash: The following declarations have the same JVM signature (assign(Lorg/gradle/api/provider/Property;Ljava/lang/String;)V):
inline fun <reified T : Confidence> Property<T>.assign(string: String): Unit defined in com.github.spotbugs.snom
inline fun <reified T : Effort> Property<T>.assign(string: String): Unit defined in com.github.spotbugs.snom
e: file:///Users/kengo/GitHub/spotbugs-gradle-plugin/src/main/kotlin/com/github/spotbugs/snom/Extensions.kt:9:1 Platform declaration clash: The following declarations have the same JVM signature (assign(Lorg/gradle/api/provider/Property;Ljava/lang/String;)V):
inline fun <reified T : Confidence> Property<T>.assign(string: String): Unit defined in com.github.spotbugs.snom
inline fun <reified T : Effort> Property<T>.assign(string: String): Unit defined in com.github.spotbugs.snomKengo TODA
08/10/2023, 10:07 PMFirstEnum.Companion.assign and SecondEnum.Companion.assignVampire
08/11/2023, 8:09 AM@JvmNameKengo TODA
08/11/2023, 11:38 AM@JvmName worked! Thank you!
https://github.com/spotbugs/spotbugs-gradle-plugin/pull/924/commits/3863ab07aac5c4b04de8520e453b4096def276a4