Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.

Fix asKotlin extension function to just working with fqName #130

Merged
merged 5 commits into from
May 29, 2020

Conversation

hadilq
Copy link
Contributor

@hadilq hadilq commented May 26, 2020

In #129 PR there is a problem that arrow-meta converts java.lang.Class to kotlin.Class, which does not exist. This is happening because the asKotlin extension function tries to convert the packageName alone. In this PR both packageName and simpleName are depending to fqName and asKotlin just converts fqName without generally guessing the corresponding kotlin dual of classes.
This solution can have more impact if I would removed all the packageName.asKotlin() and simpleName.asKotlin() in the code, but I would do that if this approach be acceptable one by reviewers.

Copy link
Member

@aballano aballano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, just one nit, the Kotlin conversion functions look better now by relying on the package 👍

@aballano aballano requested a review from raulraja May 29, 2020 09:59
@raulraja raulraja changed the title Fix asKoltin extension function to just working with fqName Fix asKotlin extension function to just working with fqName May 29, 2020
@raulraja
Copy link
Member

thanks @hadilq !

@raulraja raulraja merged commit e9d2350 into arrow-kt:master May 29, 2020
@hadilq hadilq deleted the fix-as-kotlin-extension branch June 1, 2020 17:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants