Closed SchweinchenFuntik closed 2 years ago
Unfortunately there is an issue with the serialization plugin when default annotation parameters are used. It tends to trigger mainly on incremental compilation. I don't think that I can really do anything about it. The workaround for now is to specify the annotation fully.
@pdvrieze How do I do that (having the same issue)?
What I mean is to provide all parameters, rather than using the defaults
@pdvrieze Paul, I don't want to bother you or beeing annoying. But I really don't get it.
What do I have to do, to follow your advice?
Is it about the build.gradle.kts, where I have to include/apply the plugin in another way? Is it how I write the annotation(s) in my serializable class?
A snippet would be fine, if you have some time.
However, thank you very much for your efforts and contribution!
No, where you use one of the annotations, in your kotlin code, pass all parameters explicitly.
@szsoftware Basically, what this bug is indicating that the code uses @XmlSerialName("tagName")
and to avoid this could instead be @XmlSerialName("tagName", "", "")
. (The default actually has a bit different behaviour, but explicitly specifying namespace and prefix is probably better).
@pdvrieze Thank you so much for your quick and precise answering! I got my code to compile and work now.
I am getting similar error from your other annotations as well
code:
build.gradle.kts
stacktrace gradle build: