Move Kotlin code samples to a dedicated package #33845
Labels
status: declined
A suggestion or change that we don't feel we should currently apply
theme: kotlin
An issue related to Kotlin support
type: task
A general task
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](https://private-user-images.githubusercontent.com/141109/383253760-ba145320-55b7-4086-8976-5d2510db085f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxMTgzMTEsIm5iZiI6MTczOTExODAxMSwicGF0aCI6Ii8xNDExMDkvMzgzMjUzNzYwLWJhMTQ1MzIwLTU1YjctNDA4Ni04OTc2LTVkMjUxMGRiMDg1Zi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOVQxNjIwMTFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT03NWE4OTY1NDE3ZGNjNmEyNzA3YmVhMDMyYjFkNmUyOTNjZWZhNGRhMzU3MTNmNDM3ZGZiZTc1YmJhNGUzM2VhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.wRAO8ZwOqDuvO3seDtzAnCw_YIVfH_xCzlYzqPz0sy4)
The text was updated successfully, but these errors were encountered: