Skip to content

Lifecycle Events using Any in kotlin does not work #1809

@blommish

Description

@blommish

Using kotlin and Any instead of Object does work.

@Bean
fun loggingSaves(): ApplicationListener<BeforeSaveEvent<Any>> {
    return ApplicationListener { event: BeforeSaveEvent<Any> ->

https://docs.spring.io/spring-data/jdbc/docs/2.4.18/reference/html/#jdbc.events

Should it be possible? Since the documentation mentions Object i would think it would match all using Any (or Object)

Metadata

Metadata

Assignees

No one assigned

    Labels

    for: stackoverflowA question that's better suited to stackoverflow.com

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions