Skip to content

Move Kotlin code samples to a dedicated package #33845

Closed as not planned
Closed as not planned
@sdeleuze

Description

@sdeleuze

The upgrade to Kotlin 2 planned in #33629 is blocked by an error that happens during the compilation of Kotlin code samples due to duplicated classes between Java and Kotlin code samples, since they are using the same package and name.

After discussing with @philwebb and @rwinch, we agreed to try to solve this by using a dedicated package per language, maybe with a related convention. This will likely require evolving the include-code extension where I will potentially create a related PR.

That change will also avoid warnings/errors in the IDE:
image

Metadata

Metadata

Assignees

Labels

status: declinedA suggestion or change that we don't feel we should currently applytheme: kotlinAn issue related to Kotlin supporttype: taskA general task

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions