You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Bryan Duxbury (JIRA)" <ji...@apache.org> on 2011/05/23 20:30:47 UTC

[jira] [Closed] (THRIFT-1178) Java: TBase signature should be T extends TBase

     [ https://issues.apache.org/jira/browse/THRIFT-1178?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bryan Duxbury closed THRIFT-1178.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 0.7
         Assignee: ryan rawson

I just committed this to TRUNK.

> Java: TBase signature should be T extends TBase<?,?>
> ----------------------------------------------------
>
>                 Key: THRIFT-1178
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1178
>             Project: Thrift
>          Issue Type: Bug
>          Components: Java - Library
>    Affects Versions: 0.6.1
>            Reporter: ryan rawson
>            Assignee: ryan rawson
>             Fix For: 0.7
>
>         Attachments: THRIFT-1178.txt
>
>
> Right now TBase looks like:
> public interface TBase<T extends TBase, F extends TFieldIdEnum> extends Comparable<T>,  Serializable {
> but it should be:
> public interface TBase<T extends TBase<?,?>, F extends TFieldIdEnum> extends Comparable<T>,  Serializable {
> While the Java compiler does not have a problem, the Scala compiler throws a fit and refuses to upcast generated classes to 'TBase' when required, such as calling TSerializer.serialize

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira