Describe the bug
In ut, we used import sun.nio.ch.DirectBuffer; it is no longer public in jdk9
`
To Reproduce
In JDK9 env
Steps to reproduce the behavior:
mvn clean test -pl iotdb -am -Dtsfile.test.skip=true -Djdbc.test.skip=true -Dit.test.excludes="**/IoTDB*Test.java"
[INFO] Running cn.edu.tsinghua.iotdb.queryV2.component.SegmentInputStreamWithMMapTest
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.021 s <<< FAILURE! - in cn.edu.tsinghua.iotdb.queryV2.component.SegmentInputStreamWithMMapTest
[ERROR] testWithMMap(cn.edu.tsinghua.iotdb.queryV2.component.SegmentInputStreamWithMMapTest) Time elapsed: 0.021 s <<< ERROR!
java.lang.IllegalAccessError: class cn.edu.tsinghua.iotdb.queryV2.component.SegmentInputStreamWithMMapTest (in unnamed module @0x748ef48e) cannot access class jdk.internal.ref.Cleaner (in module java.base) because module java.base does not export jdk.internal.ref to unnamed module @0x748ef48e
at cn.edu.tsinghua.iotdb.queryV2.component.SegmentInputStreamWithMMapTest.testWithMMap(SegmentInputStreamWithMMapTest.java:52)
Describe the bug In ut, we used
import sun.nio.ch.DirectBuffer;
it is no longer public in jdk9 ` To Reproduce In JDK9 envSteps to reproduce the behavior:
mvn clean test -pl iotdb -am -Dtsfile.test.skip=true -Djdbc.test.skip=true -Dit.test.excludes="**/IoTDB*Test.java"