[ 
https://issues.apache.org/jira/browse/THRIFT-4239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16081041#comment-16081041
 ] 

Christopher Tubbs commented on THRIFT-4239:
-------------------------------------------

[~emmenlau], a quick look at your build.gradle file looks like you're still 
linking to libthrift 0.10.0, which does not have the new method being 
overridden with the Override annotation. You have to use the newer version of 
libthrift which corresponds to your thrift code generator version.

> Latest thrift breaks java build with handleRuntimeExceptions
> ------------------------------------------------------------
>
>                 Key: THRIFT-4239
>                 URL: https://issues.apache.org/jira/browse/THRIFT-4239
>             Project: Thrift
>          Issue Type: Bug
>          Components: Java - Compiler
>    Affects Versions: 0.11.0
>         Environment: Ubuntu 16.04 LTS with Oracle Java 1.8 JDK
>            Reporter: Mario Emmenlauer
>
> With the latest trunk I can no longer build my Java thrift example. I get an 
> error that handleRuntimeExceptions does not Override. It seems related to 
> these new additions in the generated Java code:
> {code}
> -      @Override
> -      protected boolean handleRuntimeExceptions() {
> -        return false;
> -      }
> {code}
> With thrift 0.10.0 the method handleRuntimeExceptions (and the error) are not 
> present.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to