Handle NoSuchFileExceptions from newer versions of javac. master
authorFredrik Tolf <fredrik@dolda2000.com>
Wed, 19 Jun 2019 12:47:41 +0000 (14:47 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Wed, 19 Jun 2019 12:47:41 +0000 (14:47 +0200)
src/dolda/jglob/Collector.java

index 0351f75..894e075 100644 (file)
@@ -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 {