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

Support Kotlin nullable information for @Autowired and @Inject

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 5.0 M4
    • Component/s: Core:DI
    • Labels:
    • Last commented by a User:
      false

      Description

      As implemented form Spring MVC/Spring Web Reactive in SPR-14165, we could use Kotlin nullable information to know if a bean is required or not.

        Issue Links

          Activity

          Hide
          juergen.hoeller Juergen Hoeller added a comment -

          Implemented in MethodParameter.isOptional() and DependencyDescriptor.isRequired() now, with private inner delegate classes for Kotlin introspection (superseding KotlinUtils and avoiding its circular reference with MethodParameter between .core and .util).

          Show
          juergen.hoeller Juergen Hoeller added a comment - Implemented in MethodParameter.isOptional() and DependencyDescriptor.isRequired() now, with private inner delegate classes for Kotlin introspection (superseding KotlinUtils and avoiding its circular reference with MethodParameter between .core and .util ).

            People

            • Assignee:
              juergen.hoeller Juergen Hoeller
              Reporter:
              sdeleuze S├ębastien Deleuze
              Last updater:
              St├ęphane Nicoll
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                40 weeks, 3 days ago