Closed littledot closed 9 years ago
To ensure immutability of the underlying class and consistency of the hashcode and equality checks, AutoValue rejects any array that is not a primitive type. It is a pessimistic behaviour and Strings are immutable, so it should work with it. However, Java arrays are fundamentally broken and I would discourage their use in any case. But if you feel like that's something they should add you can open an issue upstream: https://github.com/google/auto/issues
Closing because auto-value will not support object arrays.
Object arrays are not and will not be supported, including multidimensional primitive array types. Use a Collection type instead, such as ImmutableList.
I declared a class that has a String array property.
However, the compiler throws:
Is there any reason to not have support for String arrays?