From: Fredrik Tolf Date: Wed, 19 Jun 2019 12:47:41 +0000 (+0200) Subject: Handle NoSuchFileExceptions from newer versions of javac. X-Git-Url: http://dolda2000.com/gitweb/?p=jglob.git;a=commitdiff_plain;h=HEAD Handle NoSuchFileExceptions from newer versions of javac. --- diff --git a/src/dolda/jglob/Collector.java b/src/dolda/jglob/Collector.java index 0351f75..894e075 100644 --- a/src/dolda/jglob/Collector.java +++ b/src/dolda/jglob/Collector.java @@ -2,6 +2,7 @@ package dolda.jglob; import java.util.*; import java.io.*; +import java.nio.file.*; import javax.annotation.processing.*; import javax.tools.*; import javax.lang.model.*; @@ -30,7 +31,7 @@ public class Collector extends AbstractProcessor { InputStream in; try { in = lf.openInputStream(); - } catch(FileNotFoundException e) { + } catch(FileNotFoundException | NoSuchFileException e) { return(prev); } try {