[SPR-16020] Streamline and reduce Kotlin delegates Created: 27/Sep/17  Updated: 15/Jan/19  Resolved: 27/Sep/17

Status: Closed
Project: Spring Framework
Component/s: Core
Affects Version/s: 5.0 RC4
Fix Version/s: 5.0 GA

Type: Refactoring Priority: Major
Reporter: Juergen Hoeller Assignee: Juergen Hoeller
Resolution: Complete Votes: 0
Labels: kotlin
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relates to SPR-15673 Kotlin class instantiation with optio... Closed
relates to SPR-15847 Add support for Kotlin autowired cons... Closed
relates to SPR-15877 Revisit handling of missing fields (w... Closed
is related to SPR-17292 GenericApplicationContext.registerBea... Closed
Days since last comment: 27 weeks, 1 day ago
Last commented by a User: true
Last updater: Spring Issuemaster


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.

Comment by Spring Issuemaster [ 14/Jan/19 ]

The Spring Framework has migrated to GitHub Issues. This issue corresponds to spring-projects/spring-framework#20569.

Generated at Wed Jul 24 10:21:27 UTC 2019 using JIRA 7.9.2#79002-sha1:3bb15b68ecd99a30eb364c4c1a393359bcad6278.