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

Christopher Tubbs commented on THRIFT-5274:
-------------------------------------------

PR https://github.com/apache/thrift/pull/2325 is now available to fix this. I 
have tested it manually by commenting out the sourceCompatibility and 
targetCompatibility properties, and verifying the class file is correctly 
versioned as 52 (for Java 8) for a sampling of both main Java class files and 
test Java class files in lib/java/build/classes/

> 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
>          Components: Java - Library
>            Reporter: Colm O hEigeartaigh
>            Priority: Major
>          Time Spent: 2.5h
>  Remaining Estimate: 0h
>
> 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 suggested in this blog post: 
> [https://www.morling.dev/blog/bytebuffer-and-the-dreaded-nosuchmethoderror/]
> We can add the release flag for 1.8 (-release=8).



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

Reply via email to