You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "ryan rawson (JIRA)" <ji...@apache.org> on 2011/05/21 08:06:47 UTC
[jira] [Created] (THRIFT-1178) Java: TBase signature should be T
extends TBase,?>
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
[jira] [Commented] (THRIFT-1178) Java: TBase signature should be T
extends TBase,?>
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Updated] (THRIFT-1178) Java: TBase signature should be T
extends TBase,?>
Posted by "ryan rawson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/THRIFT-1178?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ryan rawson updated THRIFT-1178:
--------------------------------
Attachment: THRIFT-1178.txt
originally suggested by extempore on #scala/freenode
> 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
> 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
[jira] [Updated] (THRIFT-1178) Java: TBase signature should be T
extends TBase,?>
Posted by "ryan rawson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/THRIFT-1178?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ryan rawson updated THRIFT-1178:
--------------------------------
Patch Info: [Patch Available]
> 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
> 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
[jira] [Updated] (THRIFT-1178) Java: TBase signature should be T
extends TBase,?>
Posted by "ryan rawson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/THRIFT-1178?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ryan rawson updated THRIFT-1178:
--------------------------------
Attachment: (was: THRIFT-1178.txt)
> 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
> 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
[jira] [Closed] (THRIFT-1178) Java: TBase signature should be T
extends TBase,?>
Posted by "Bryan Duxbury (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Updated] (THRIFT-1178) Java: TBase signature should be T
extends TBase,?>
Posted by "ryan rawson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/THRIFT-1178?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ryan rawson updated THRIFT-1178:
--------------------------------
Comment: was deleted
(was: originally suggested by extempore on #scala/freenode)
> 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
> 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