KSP2 throws NoSuchElementException
for data classes with @JsonAdapter(generateAdapter = true)
#1870
Labels
NoSuchElementException
for data classes with @JsonAdapter(generateAdapter = true)
#1870
Issue
When the
ksp.useKSP2
flag is enabled, KSP2 throws ajava.util.NoSuchElementException
under two specificcases:
@JsonAdapter(generateAdapter = true)
@JsonAdapter(generateAdapter = false)
(notwithstanding their lack of necessity)Environment
Example
To recreate the issue, follow these instructions:
libs.versions.toml
build.gradle.kts
This build finishes successfully.
This build fails with exception
Removing the data modifier from the
Person
class and the annotation from the enum class allows the KSP processor to complete its task without encountering any issues.Interesting point. Next test in
JsonClassSymbolProcessorTest
passes successfully.The text was updated successfully, but these errors were encountered: