`com.sun.nio.zipfs.ZipPath` is not present in newer Java versions
altrisi opened this issue ยท 3 comments
Latest commit (1a47f43) introduced the new support for zip files directly in the file read functions.
However, while it seems to be present in Java 8, my IDE and Gradle running Java 11 is complaining about it not existing.
This is probably because of ZipPath
being part of internal/proprietary/whatever APIs and therefore not guaranteed to be kept through versions. There should probably some way to do the same without using those APIs, haven't really looked at it.
For information's sake, what seems to be the equivalent of com.sun.nio.zipfs.ZipPath
in Java 11 is jdk.nio.zipfs.ZipPath
, but it is also part of internal APIs and probably shouldn't be used either, since it may have already changed in newer Java versions.
This probably causes ClassDefNotFoundExceptions
or similar, haven't really launched it because of that.
Once again didn't really look at it, but maybe something checking in Path#getFileSystem()
or FileSystemProvider there for the needed properties/whatever?
Ok, that import is not really needed - could just pass a boolean to the static method. Should be a simple fix.
done
53f6a49