thrift-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James E. King III (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (THRIFT-4481) TBinaryProtocol.writeMessageEnd isn't throwable exception
Date Thu, 03 Jan 2019 20:29:00 GMT

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

James E. King III updated THRIFT-4481:
--------------------------------------
    Summary: TBinaryProtocol.writeMessageEnd isn't throwable exception  (was: TBinaryProtocol.writeMessageEnd
isn't trowable exception)

> TBinaryProtocol.writeMessageEnd isn't throwable exception
> ---------------------------------------------------------
>
>                 Key: THRIFT-4481
>                 URL: https://issues.apache.org/jira/browse/THRIFT-4481
>             Project: Thrift
>          Issue Type: Bug
>          Components: Java - Library
>    Affects Versions: 0.11.0
>            Reporter: Anton Shchyrov
>            Assignee: James E. King III
>            Priority: Major
>             Fix For: 1.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> In base class TProtocol method writeMessageEnd can throw exception TException
> {code:java}
> public abstract void writeStructEnd() throws TException;{code}
> In this class this method is overridden by an empty implementation and already can not
throw exceptions
> {code:java}
> public void writeMessageEnd() {
>  }{code}
> I want to extend the capabilities of the class TBinaryProtocol and override this method.
But I can not throw an exception from it or call a method that can throw an exception
> A similar remark on all methods of a class TBinaryProtocol with an empty body



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message