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

Closed
ansman opened this issue Jul 11, 2024 · 1 comment
Closed

getSymbolsWithAnnotation returns copy function from data class #1996

ansman opened this issue Jul 11, 2024 · 1 comment
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

@neetopia neetopia added the bug Something isn't working label Jul 11, 2024
@ting-yuan ting-yuan self-assigned this Jul 25, 2024
@ansman
Copy link
Contributor Author

ansman commented Aug 24, 2024

This has been fixed by a recent release as I cannot reproduce it any longer.

@ansman ansman closed this as completed Aug 24, 2024
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