You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Colm O hEigeartaigh (Jira)" <ji...@apache.org> on 2020/09/08 10:36:00 UTC

[jira] [Created] (THRIFT-5274) Thrift 0.13.0 does not work with JDK8

Colm O hEigeartaigh created THRIFT-5274:
-------------------------------------------

             Summary: Thrift 0.13.0 does not work with JDK8
                 Key: THRIFT-5274
                 URL: https://issues.apache.org/jira/browse/THRIFT-5274
             Project: Thrift
          Issue Type: Task
            Reporter: Colm O hEigeartaigh
             Fix For: 0.14.0


Thrift 0.13.0 does not work with JDK8, as it is compiled with JDK11. Even though the source version is JDK8, incorrect byte code is generated for various ByteBuffer methods, e.g.:

Exception in thread "TAsyncClientManager#SelectorThread 22" java.lang.NoSuchMethodError: java.nio.ByteBuffer.rewind()Ljava/nio/ByteBuffer;

The fix is to manually cast ByteBuffer to Buffer (or else switch to using the xenial docker image to create the release artifacts). See this task for more context: [https://github.com/eclipse/jetty.project/issues/3244]

I'll submit a PR for the first option.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)