You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "James E. King III (JIRA)" <ji...@apache.org> on 2019/01/03 20:29:00 UTC
[jira] [Updated] (THRIFT-4481) TBinaryProtocol.writeMessageEnd
isn't throwable exception
[ 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)