xerial / larray

Large off-heap arrays and mmap files for Scala and Java
Apache License 2.0
400 stars 43 forks source link

java WARNING: MMapBuffer Illegal reflective access operation to field java.io.FileDescriptor.fd #79

Open phobrain opened 1 year ago

phobrain commented 1 year ago

How wrong might this be?

Gradle (per maven in README):

implementation group: 'org.xerial.larray', name: 'larray_2.12', version: '0.4.0'

Java:

openjdk version "11.0.18" 2023-01-17

Code:

new MMapBuffer(new File(floatFile), MMapMode.READ_ONLY);

Full warning:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by xerial.larray.mmap.MMapBuffer (file:/home/epqe/pr_git/pr/proj/pairs/build/libs/pairs-all-1.0.jar) to field java.io.FileDescriptor.fd
WARNING: Please consider reporting this to the maintainers of xerial.larray.mmap.MMapBuffer
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release