Handle NoSuchFileExceptions from newer versions of javac.
[jglob.git] / 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 {