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


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

Reply via email to