From 004c041041f4d925fe8049e995acc53fe36308d0 Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Wed, 19 Jun 2019 14:47:41 +0200 Subject: [PATCH] Handle NoSuchFileExceptions from newer versions of javac. --- src/dolda/jglob/Collector.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 { -- 2.11.0