Closed gavra0 closed 4 years ago
@ZacSweers was just looking into that prior to a release. @ZacSweers, does it look like that might be the issue?
On it!
I think my confusion was that we were hiding this behind autovalue's guard of originating elements, but I guess the rules are different if we're not generating it into a nested type anymore?
With e.g.
and dependencies
incremental annotation processing fails because it does not pass the originating element when generating
com.example.myapplication.Foo_GsonTypeAdapter
.Both Gradle Java compilation and KAPT fail to run incrementally.
The issue seems to be that
AutoValueGsonExtension.generateClass
does not set originating element for theTypeSpec.Builder
it is using to write the class.