Uploaded image for project: 'ProtoStream'
  1. ProtoStream
  2. IPROTO-99

Ability to define an empty proto message via Pojo annotations

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 4.3.0.Alpha9, 4.3.0.Final
    • 4.3.0.Alpha7
    • None
    • DataGrid Sprint #30

      In some cases it's useful for a empty protobuf message to be sent, for example formalising an implementation type.

      Currently when trying to define an empty proto message by annotating a class with just ProtoName annotation, the following error is thrown at compile time:

      Error:(71, 8) java: Class org.infinispan.notifications.cachelistener.cluster.AbstractClusterListenerUtilTest.StringAppender does not have any @ProtoField annotated fields. The class should be either annotated or it should have a custom marshaller.
      

      It's possible to workaround this by simply creating a @Protofield annotation on a class variable which is never initialised.

              anistor Adrian Nistor (Inactive)
              remerson@redhat.com Ryan Emerson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: