Skip to content

Streamline and reduce Kotlin delegates [SPR-16020] #20569

Closed

Description

@spring-projects-issues

Juergen Hoeller opened SPR-16020 and commented

With #20432 leading to yet another need for a Kotlin-specific parameter declaration check, let's take the opportunity to streamline our Kotlin support code: Specifically, we can unify the detection of Kotlin's optional parameters in MethodParameter.isOptional(), reduce BeanUtils.findPrimaryConstructor to Kotlin semantics (for reuse in AutowiredAnnotationBeanPostProcessor as well as data class construction), and finally introduce a common KotlinDetector delegate with an isKotlinType(Class) check.


Affects: 5.0 RC4

Issue Links:

Referenced from: commits ec345bf

Activity

  1. added
    in: core
    type: task
    on Jan 11, 2019
  2. added this to the 5.0 GA milestone on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: coretype: task

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions