Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-3044

Protocol Callback interface should have @AvroGenerated

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.10.1
    • 1.10.2
    • java
    • None

    Description

      This is very similar to AVRO-2298

      The protocol has interface

       

      @org.apache.avro.specific.AvroGenerated
      public interface SomeProto {
        public static final org.apache.avro.Protocol PROTOCOL = .....

      // here it should also have @AvroGenerated{{}}
        @SuppressWarnings("all")
        public interface Callback extends SomeProto {
        public static final org.apache.avro.Protocol PROTOCOL = com.my.SomeProto.PROTOCOL;
      {

      {  }

      }}
      }

       

       

      This is the place in the code: https://github.com/apache/avro/blob/7d1e63b219e6d0778bc57195152477adee97fcab/lang/java/compiler/src/main/velocity/org/apache/avro/compiler/specific/templates/java/classic/protocol.vm#L64

       

      Also as I see the $protocol.getDoc() javadoc should not be between interface and annotations, it breaks javadoc processing.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kan.izh Anatoly Kupriyanov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: