Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-3898

TBase interface shouldn't extend Comparable

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 0.9.3
    • None
    • Java - Library
    • None

    Description

      The interface....
      public interface TBase<T extends TBase<?, ?>, F extends TFieldIdEnum> extends Comparable<T>, Serializable {
      ... end interface

      Extending TBase with Comparable<T> forces the inclusion of the T generic parameter that is self referential. It doesn't make sense to need this on the base interface since it isn't possible to compare different TBase types.

      This only applies to the TBase interface. The generated structs should still implement Comparable.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mrettig Mike Rettig
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: