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

getSymbolsWithAnnotation returns copy function from data class #1996

Open
ansman opened this issue Jul 11, 2024 · 0 comments
Open

getSymbolsWithAnnotation returns copy function from data class #1996

ansman opened this issue Jul 11, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@ansman
Copy link
Contributor

ansman commented Jul 11, 2024

In my project, Kotshi, I'm getting test failures using 2.0.0-1.0.23.

The issue is that when I call getSymbolsWithAnnotation I get the copy function for annotated data classes.

This is the annotation I'm using:

@Target(AnnotationTarget.CLASS)
@MustBeDocumented
@Retention(AnnotationRetention.SOURCE)
annotation class JsonSerializable(
    val useAdaptersForPrimitives: PrimitiveAdapters = PrimitiveAdapters.DEFAULT,
    val serializeNulls: SerializeNulls = SerializeNulls.DEFAULT
)

And this is the data class in question:

@JsonSerializable
data class Simple(val prop: String)

I'm getting Simple.copy as an element when calling getSymbolsWithAnnotation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants