jixuan1989 opened a new pull request #617: [IOTDB-336]declare that the release 
version of JDK is 8
URL: https://github.com/apache/incubator-iotdb/pull/617
 
 
   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>
   
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to