Leverage kotlin-reflect to determine parameter names
This is especially useful to determine interface parameter names without requiring Java 8 -parameters compiler flag. Issue: SPR-15541
This commit is contained in:
@@ -115,12 +115,16 @@ Other libraries like Reactor or Spring Data leverage these annotations to provid
|
||||
null-safe APIs for Kotlin developers.
|
||||
====
|
||||
|
||||
== Classes
|
||||
== Classes & Interfaces
|
||||
|
||||
Spring Framework 5 now supports various Kotlin constructs like instantiating Kotlin classes
|
||||
via primary constructors, immutable classes data binding and function optional parameters
|
||||
with default values.
|
||||
|
||||
Kotlin parameter names are recognized via a dedicated `KotlinReflectionParameterNameDiscoverer`
|
||||
which allows to find interface method parameter names without requiring Java 8 `-parameters`
|
||||
compiler flag.
|
||||
|
||||
https://github.com/FasterXML/jackson-module-kotlin[Jackson Kotlin module] which is required
|
||||
for serializing / deserializing JSON data is automatically registered when present in the
|
||||
classpath, and will log a warning message if Jackson + Kotlin are detected without Jackson
|
||||
@@ -509,7 +513,6 @@ Here is a list of pending issues related to Spring + Kotlin support.
|
||||
|
||||
===== Spring Framework
|
||||
|
||||
* https://jira.spring.io/browse/SPR-15541[Leveraging kotlin-reflect to determine interface method parameters]
|
||||
* https://jira.spring.io/browse/SPR-15413[Add support for Kotlin coroutines]
|
||||
|
||||
===== Spring Boot
|
||||
|
||||
Reference in New Issue
Block a user