when using moshi codegen, it wont complain if i fo...
# squarelibraries
m
when using moshi codegen, it wont complain if i forget to annotate with
Copy code
@JsonClass(generateAdapter = true)
. but i haven't got the relection-based dependency and it still works. does it mean, somehow, there's a transitive dependency on kotlin reflect ?
l
It means it doesn't check the value of the parameter. It'll probably crash at runtime.
m
no it does not crash, at least in debug mode. if it would, i woldn't be asking this question tho
l
Then it's probably working with Java reflection, which seems to be sufficient in your case.
a
This makes sure that kotlin classes aren't parsed through Java class adapter but it's not released yet. https://github.com/square/moshi/pull/749
👍 1