[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:
Relate
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: 1 year, 1 week, 5 days ago
Last commented by a User: true
Last updater: Spring Issuemaster

 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.



 Comments   
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 Sun Jan 26 06:54:39 UTC 2020 using Jira 7.13.8#713008-sha1:1606a5c1e7006e1ab135aac81f7a9566b2dbc3a6.