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

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=13038273#comment-13038273 ] 

Hudson commented on THRIFT-1178:
--------------------------------

Integrated in Thrift #147 (See [https://builds.apache.org/hudson/job/Thrift/147/])
    

> 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