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

Top-level enum requires @TypeId annotation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • 4.4.0.Beta3
    • 4.4.0.Beta2
    • None
    • False
    • False
    • Undefined

    Description

      This proto schema is not supported, a /* @TypeId(10001) */ annotation is required:

      package A; enum E { ONE = 1; TWO = 2; }
      
      java.lang.NullPointerException
          at org.infinispan.protostream.impl.JsonUtils.processEnum(JsonUtils.java:169)
          at org.infinispan.protostream.impl.JsonUtils.processDocument(JsonUtils.java:128)
          at org.infinispan.protostream.impl.JsonUtils.fromCanonicalJSON(JsonUtils.java:91)
          at org.infinispan.protostream.ProtobufUtil.fromCanonicalJSON(ProtobufUtil.java:179)
      

      Attachments

        Issue Links

          Activity

            People

              anistor Adrian Nistor (Inactive)
              dberinde@redhat.com Dan Berindei (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: