You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 26, 2021. It is now read-only.
Exact equality between types is expected using Types.isSameAs within Stag. This does not return true for the two types List<? extends T> and List`, and therefore causes a build error. The long-term solution would be to build support for type variance into the processor, but short-term this isn't feasible as it will be quite difficult.
The workaround for this is to utilize the @JvmSuppressWildcards annotation. You can apply it to the type parameter of any generic collection that you are getting the error for. For instance, the above failing example you provided will compile when changed to this:
Issue Summary
Stag fails to find the getter for a list of maps,
Reproduction Steps
Expected Behavior
To work and parse a list of maps
Actual Behavior
A Compile error as below
The text was updated successfully, but these errors were encountered: