Mike Rettig created THRIFT-3898: ----------------------------------- Summary: TBase interface shouldn't extend Comparable Key: THRIFT-3898 URL: https://issues.apache.org/jira/browse/THRIFT-3898 Project: Thrift Issue Type: Improvement Components: Java - Library Affects Versions: 0.9.3 Reporter: Mike Rettig Priority: Minor
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. -- This message was sent by Atlassian JIRA (v6.3.4#6332)