Commit 6383fb8
committed
Fix compilation with Java 9 and 10
The annotation processor does something evil: it catches
FileNotFoundException to detect when a file does not exist. But
in Java 9, the relevant code changed internally to use java.nio,
which throws NoSuchFileException instead in this circumstance.
For now, we do a "quick fix" and simply catch either exception.
Closes imagej/ImageJ#199.1 parent b6e16a2 commit 6383fb8
File tree
1 file changed
+2
-1
lines changed- src/main/java/org/scijava/annotations
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
234 | 235 | | |
235 | 236 | | |
236 | 237 | | |
237 | | - | |
| 238 | + | |
238 | 239 | | |
239 | 240 | | |
240 | 241 | | |
| |||
0 commit comments