Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-16020

Streamline and reduce Kotlin delegates

    Details

    • Type: Refactoring
    • Status: Closed
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 5.0 RC4
    • Fix Version/s: 5.0 GA
    • Component/s: Core
    • Labels:
    • Last commented by a User:
      true

      Description

      With SPR-15877 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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                juergen.hoeller Juergen Hoeller
                Reporter:
                juergen.hoeller Juergen Hoeller
                Last updater:
                Spring Issuemaster
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  39 weeks, 2 days ago