SerCeMan / jnr-fuse

FUSE implementation in Java using Java Native Runtime (JNR)
MIT License
363 stars 86 forks source link

Split package when using jnr-fuse in JPMS-enabled project #102

Open overheadhunter opened 4 years ago

overheadhunter commented 4 years ago

If one wants to use jnr-fuse in a [JPMS]()-project, one needs to require at least two modules (maybe even more) in order to import the classes required to extend AbstractFuseFS:

module com.example.module {
    requires jnr.fuse;
    requires jnr.ffi;
}

However this causes the "split package" problem (inhibiting compilation), as the package jnr.ffi exists in both projects.

I can't tell if this needs to be that way (in which case jnr-fuse can't be used for such projects). If it doesn't, I would suggest to rename these packages to a namespace exclusive to jnr-fuse.