Closed GoogleCodeExporter closed 9 years ago
See issue 561 for an explanation of what's happening and the fix. Basically,
you need to register a type adapter since the enum field names won't match the
values in JSON after ProGuard and the mangling breaks normal enum conventions.
Furthermore, this violates JLS 8.9.2:
http://docs.oracle.com/javase/specs/jls/se7/html/jls-8.html#jls-8.9.2
> In addition to the members that an enum type E inherits from Enum<E>, for
each declared enum constant with the name n, the enum type has an implicitly
declared public static final field named n of type E.
Original comment by j...@squareup.com
on 9 Aug 2014 at 6:25
Original issue reported on code.google.com by
amit.a.v...@gmail.com
on 18 Apr 2014 at 2:27