-
Notifications
You must be signed in to change notification settings - Fork 37
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
Compilation error "@ProtoAdapter can only be applied to classes" on enum #181
Comments
I am facing the same issue |
Hi @poschi3 and @seravat. @AutoProtoSchemaBuilder(includeClasses = { Developer.class, ColorAdapter.class },
schemaFileName = "developer.proto", schemaFilePath = "proto")
public interface DeveloperSchema extends GeneratedSchema {
DeveloperSchema INSTANCE = new DeveloperSchemaImpl();
} Could you share the code that uses the adapter please? |
So, I found that in the class annotated with |
going to check the case thank you |
you definitely right, I opened the issue https://issues.redhat.com/browse/IPROTO-261 |
Hi, I wrote a ProtoAdapter for an Enum and get a compilation error:
But documentation says
I also found an Unit Test in source code doing this. My example files are adopted from there:
ColorEnum.java
ColorEnumAdapter.java
Can you help me to find out what I'm doing wrong?
The text was updated successfully, but these errors were encountered: