Skip to content

Commit 8db52cb

Browse files
committed
Fix compilation bug in ZipChemCompProvider
With some JDKs (openjdk-11) there is an (undocumented?) `java.nio.file.FileSystems.newFileSystem(Path,Map<String,?>)` method. This patch disambiguates which override to use for null.
1 parent 3a06c1e commit 8db52cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

biojava-structure/src/main/java/org/biojava/nbio/structure/io/mmcif/ZipChemCompProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ private synchronized ChemComp getFromZip(String recordName) {
236236
final String filename = "chemcomp/" + recordName+".cif.gz";
237237

238238
// try with resources block to read from the filesystem.
239-
try (FileSystem fs = FileSystems.newFileSystem(m_zipFile, null)) {
239+
try (FileSystem fs = FileSystems.newFileSystem(m_zipFile, (ClassLoader) null)) {
240240
Path cif = fs.getPath(filename);
241241

242242
if (Files.exists(cif)) {

0 commit comments

Comments
 (0)