Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-12975

Protostream processor error for @AutoProtoSchemaBuilder should show better messages for not annotated classes

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Unresolved
    • Minor
    • None
    • None
    • Marshalling
    • None
    • Undefined

    Description

      If the interface with Annotation @AutoProtoSchemaBuilder reference an annotated class which include not annotated objects, example

      class Book

      {   @ProtoField(number =1)   public UUID id; ...}

      The processing will fire an error regarding the constructor

      [ERROR] ...Initalizer.java:[7,8] org.infinispan.protostream.annotations.ProtoSchemaBuilderException: The class java.util.UUID must be instantiable using an accessible no-argument constructor.

      this can be confusing and it should be an error point to the missing ProtoAdaptor implementation for a not annotated class.
       
       

      Attachments

        Activity

          People

            Unassigned Unassigned
            rhn-support-wfink Wolf Fink
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: