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
In java code, if an array value is set without using the array syntax
(e.g. not wrapped in {}), KSP might return it as a single item instead
of a list of items.
google/ksp#214
This CL adds a workaround to assume it when a single item is received
when we are expecting an array and wraps it into a list.
Bug: 176180385
Test: XAnnotationBoxTest.typeReferenceArray_singleItemInJava
Test: TypeAdapterStoreTest.testInvalidNonStaticInnerClass
Change-Id: Ia5d2513f28550eace91831cf9213a046dafae020
For the given annotation:
And usage:
Obtaining the annotation value in KSP gives back the String type as a single item instead of list/array of KSType.
Note that this does not happen if array syntax is used but it is not mandatory in java.
The text was updated successfully, but these errors were encountered: