[ 
https://issues.apache.org/jira/browse/IOTDB-336?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jialin Qiao closed IOTDB-336.
-----------------------------
    Fix Version/s: 0.10.0-SNAPSHOT
       Resolution: Fixed

> Binary files incompatible between JDK8 and JDK11
> ------------------------------------------------
>
>                 Key: IOTDB-336
>                 URL: https://issues.apache.org/jira/browse/IOTDB-336
>             Project: Apache IoTDB
>          Issue Type: Bug
>            Reporter: xiangdong Huang
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 0.10.0-SNAPSHOT
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> I tried to use JDK11 to compile a binary file, you can get it at 
> [https://dist.apache.org/repos/dist/dev/incubator/iotdb/0.8.2/rc1].
> However, if a user uses JDK8 to run it, an exception will occur:
> java.lang.NoSuchMethodError: java.nio.ByteBuffer.clear()Ljava/nio/ByteBuffer;
>  
> It is because before JDK9, ByteBuffer.clear() returns  Buffer, while from 
> JDK9 on, the method return ByteBuffer.
>  
> According to [https://github.com/apache/curator/pull/312], add a parameter 
> `–release 8` can solve the problem. 
> In maven, we can add a property called 
> ```
> <maven.compiler.release>8</maven.compiler.release>
> ```
> I am verifying the solution now.
>  
>  



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

Reply via email to