xiangdong Huang created IOTDB-336:

             Summary: 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

I tried to use JDK11 to compile a binary file, you can get it at 

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 




I am verifying the solution now.



This message was sent by Atlassian Jira

Reply via email to