thulab / iotdb

This repository is ReadOnly now. please go to https://github.com/apache/incubator-iotdb
Apache License 2.0
19 stars 0 forks source link

iotdb sub module unspport in jdk9 #540

Closed MyXOF closed 5 years ago

MyXOF commented 5 years ago

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:

  1. 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)