Skip to content

Kotlin examples in Spring Core docs should use extension functions with reified types #23456

Closed
@juergenzimmermann

Description

@juergenzimmermann

Affects: 5.2.0-SNAPSHOT

In https://github.com/spring-projects/spring-framework/tree/master/src/docs/asciidoc/core line 374 is:

val service = context.getBean("petStore", PetStoreService::class.java)

"Kotlin style" would be:

val service = context.getBean<PetStoreService>("petStore")

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: documentationA documentation task

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions