Skip to content

Unable to generate a serializer for java.time.Month #1223

Open
@dkhalanskyjb

Description

@dkhalanskyjb

The following code produces a compilation error:

@ExperimentalSerializationApi
@Serializer(forClass = java.time.Month::class)
object MonthSerializer: KSerializer<java.time.Month>

The error:

Object 'MonthSerializer' is not abstract and does not implement abstract member public abstract val descriptor: SerialDescriptor defined in kotlinx.serialization.KSerializer

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions