Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Un-mangle Kotlin method names in PartTree #2965

Closed
mp911de opened this issue Oct 25, 2023 · 0 comments
Closed

Un-mangle Kotlin method names in PartTree #2965

mp911de opened this issue Oct 25, 2023 · 0 comments
Labels
type: enhancement A general enhancement

Comments

@mp911de
Copy link
Member

mp911de commented Oct 25, 2023

Repository method declarations using Kotlin value classes are subject to be mangled (i.e. Kotlin Compiler appends a hash separated by -).

interface PersonRepository : CrudRepository<Person, String> {

	fun findOneByEmail(emailAddress: EmailAddress): Person
}

becomes:

interface PersonRepository extends CrudRepository<Person, String> {

	Person findOneByEmail-u1QWhUI(EmailAddress emailAddress);
}

@JvmName cannot be used on interfaces so the only way to mitigate that issue is on our side.

@mp911de mp911de added the type: enhancement A general enhancement label Oct 25, 2023
@mp911de mp911de added this to the 3.2 GA (2023.1.0) milestone Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant