-
Notifications
You must be signed in to change notification settings - Fork 65
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
Cannot use Builder with custom Parcelable type ? #117
Comments
Looks like an auto value bug. It should be ignoring consumed properties
from extensions.
…On Tue, May 2, 2017 at 10:03 AM Benlenem ***@***.***> wrote:
Hi,
I'm not able to compile when using implements Parcelable with and
@AutoValue.Builder and a custom ParcelAdapter I wrote for a Joda
DateTime. I got an error: Expected a method with this signature:
my.package.Foo.Builder setDescribeContents(int), or a
describeContentsBuilder() method.
I'm using auto-value 1.4.1 and parcel-adapter 0.2.5.
import android.os.Parcelable;
import android.support.annotation.Nullable;
import com.google.auto.value.AutoValue;
import com.ryanharter.auto.value.parcel.ParcelAdapter;
import org.joda.time.DateTime;
import my.package.JodaDateTimeAdapter;
@autovalue
public abstract class Foo implements Parcelable {
@ParcelAdapter(JodaDateTimeAdapter.class)
@nullable
public abstract DateTime bar();
public static Builder builder() {
return new AutoValue_Foo.Builder();
}
@AutoValue.Builder
public abstract static class Builder {
public abstract Builder setBar(DateTime d);
public abstract Foo build();
}
}
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#117>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AAEEEfnkiIYQ5OFz9LDJno5Rp4J951WSks5r1zeWgaJpZM4NOLwj>
.
|
I just tried this with the versions you mentioned and didn't have any issues |
I got a similar issue when I updated my annotation processing from using |
Same situation here. |
Same here. Happens on Kotlin too. |
Is there any luck anyone Fixed it? |
Please file a bug with auto value, as it seems unrelated here. We can revisit as necessary though |
I am currently having the same issue trying to build with bazel. I get the error
While trying to compile How was this issue resolved? |
Actually, it seems like this does the trick. |
Hi,
I'm not able to compile when using
implements Parcelable
with an@AutoValue.Builder
and a custom ParcelAdapter I wrote for a Joda DateTime. I got anerror: Expected a method with this signature: my.package.Foo.Builder setDescribeContents(int), or a describeContentsBuilder() method
.I'm using auto-value 1.4.1 and parcel-adapter 0.2.5.
The text was updated successfully, but these errors were encountered: