Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
0.9.3
-
None
-
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
- relates to
-
THRIFT-759 Make TBase implement Comparable
- Closed