Skip to content

[IOTDB-336]declare that the release version of JDK is 8#617

Merged
qiaojialin merged 2 commits intomasterfrom
fix_release_jdk_version
Dec 3, 2019
Merged

[IOTDB-336]declare that the release version of JDK is 8#617
qiaojialin merged 2 commits intomasterfrom
fix_release_jdk_version

Conversation

@jixuan1989
Copy link
Copy Markdown
Member

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 apache/curator#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>

@qiaojialin qiaojialin merged commit 07cb959 into master Dec 3, 2019
@qiaojialin qiaojialin deleted the fix_release_jdk_version branch December 3, 2019 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants