[ https://issues.apache.org/jira/browse/THRIFT-4481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Anton Shchyrov updated THRIFT-4481: ----------------------------------- Description: 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 was: In base class TProtocol method writeMessageEnd can throw exception TException {{public abstract void writeStructEnd() throws TException;}} In this class this method is overridden by an empty implementation and already can not throw exceptions {{public void writeMessageEnd() {}} {{}}} 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 > TBinaryProtocol.writeMessageEnd isn't trowable 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 > Priority: Major > > 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)