You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Mario Emmenlauer (JIRA)" <ji...@apache.org> on 2017/06/28 21:15:00 UTC

[jira] [Commented] (THRIFT-4239) Latest thrift breaks java build with handleRuntimeExceptions

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

Mario Emmenlauer commented on THRIFT-4239:
------------------------------------------

The exact error message is pointing to the @Override of handleRuntimeExceptions():
{code}
[...]/APIAccess.java:398: error: method does not override or implement a method from a supertype
      @Override
      ^
{code}


> 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)