-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When defining an abstract class with generics, compilation fails. #17
Comments
Looks like the moshi extension generates the class without generic type parameters. Given an AutoValue class: @AutoValue
public abstract class Action<T> {
public abstract T value();
} The Moshi extension generates a class with the generic type parameters missing, |
@rharter any thoughts on how to go about this? Happy to take a crack at it if you have any ideas around it |
@rharter Any news on this? |
Does this work when T itself is an AutoValue class? For me, it raises a "java.lang.IllegalArgumentException: Cannot serialize abstract class.." exception. |
Given the class
@AutoValue abstract class Foo<T>
, compilation fails when I include auto-value-moshi (apt 'com.ryanharter.auto.value:auto-value-moshi:0.2-SNAPSHOT'
).The text was updated successfully, but these errors were encountered: