mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 00:21:29 +00:00
Load Java enums as final classes
In case Java enum has an abstract member, it has the ACC_ABSTRACT flag set in the bytecode. However, we should still load it with final modality to be consistent with Kotlin enums which are always considered final #KT-23426 Fixed
This commit is contained in:
@@ -4,7 +4,7 @@ public open class EnumArgumentWithCustomToString {
|
||||
public constructor EnumArgumentWithCustomToString()
|
||||
@test.EnumArgumentWithCustomToString.EnumAnno(value = E.CAKE) @test.EnumArgumentWithCustomToString.EnumArrayAnno(value = {E.CAKE, E.CAKE}) public/*package*/ open fun annotated(): kotlin.Unit
|
||||
|
||||
public open enum class E : kotlin.Enum<test.EnumArgumentWithCustomToString.E!> {
|
||||
public final enum class E : kotlin.Enum<test.EnumArgumentWithCustomToString.E!> {
|
||||
enum entry CAKE
|
||||
|
||||
private constructor E()
|
||||
|
||||
Reference in New Issue
Block a user