[ 
https://issues.apache.org/jira/browse/THRIFT-3898?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15434259#comment-15434259
 ] 

Roshan George commented on THRIFT-3898:
---------------------------------------

It was convenient, for any {{T extends TBase}}, to have {{T#deepCopy}} return 
{{T}}. A bit annoying to cast the {{TBase}} otherwise, but not a killer.

> 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)

Reply via email to