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