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

Not possible to have @ProtoField of type List<byte[]>

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.3.0.Alpha9, 4.3.0.Final
    • 4.3.0.Alpha8
    • None
    • DataGrid Sprint #31, DataGrid Sprint #32, DataGrid Sprint #33, DataGrid Sprint #34, DataGrid Sprint #35, DataGrid Sprint #36, DataGrid Sprint #37, DataGrid Sprint #38, DataGrid Sprint #39

          static final class ExpiryBucket {
              @ProtoField(number = 1, collectionImplementation = ArrayList.class)
              List<byte[]> entries;
      
              ExpiryBucket() {}
      
              ExpiryBucket(byte[]... entries) {
                  this.entries = Arrays.asList(entries);
              }
          }
      

      Error:

      PersistenceContextInitializer.java:[19,1] org.infinispan.protostream.annotations.ProtoSchemaBuilderException: The class byte[] must be instantiable using an accessible no-argument constructor.
      

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

                Created:
                Updated:
                Resolved: