Comment #2 on issue 545 by ibmir...@gmail.com: Unable to set enum field via setField (Java Protobufs 2.5.0)
http://code.google.com/p/protobuf/issues/detail?id=545

Looking at the code for SingularEnumFieldAccessor.set looks like it does

        valueOfMethod = getMethodOrDie(type, "valueOf",
                                       EnumValueDescriptor.class);

      public void set(final Builder builder, final Object value) {
        super.set(builder, invokeOrDie(valueOfMethod, null, value));
      }

Which means that you need to be passing it a EnumValueDescriptor instance.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups "Protocol 
Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to