This is an automated email from the ASF dual-hosted git repository. aengineer pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push: new 0371e95 HDDS-2179. ConfigFileGenerator fails with Java 10 or newer 0371e95 is described below commit 0371e953ac51d991f2bfed9ffd1724ff80733752 Author: Doroszlai, Attila <adorosz...@apache.org> AuthorDate: Wed Sep 25 21:43:33 2019 +0200 HDDS-2179. ConfigFileGenerator fails with Java 10 or newer Signed-off-by: Anu Engineer <aengin...@apache.org> --- .../main/java/org/apache/hadoop/hdds/conf/ConfigFileGenerator.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hadoop-hdds/config/src/main/java/org/apache/hadoop/hdds/conf/ConfigFileGenerator.java b/hadoop-hdds/config/src/main/java/org/apache/hadoop/hdds/conf/ConfigFileGenerator.java index 64c20ac..471b679 100644 --- a/hadoop-hdds/config/src/main/java/org/apache/hadoop/hdds/conf/ConfigFileGenerator.java +++ b/hadoop-hdds/config/src/main/java/org/apache/hadoop/hdds/conf/ConfigFileGenerator.java @@ -33,6 +33,7 @@ import java.io.InputStream; import java.io.OutputStreamWriter; import java.io.Writer; import java.nio.charset.StandardCharsets; +import java.nio.file.NoSuchFileException; import java.util.Set; /** @@ -60,7 +61,7 @@ public class ConfigFileGenerator extends AbstractProcessor { .getResource(StandardLocation.CLASS_OUTPUT, "", OUTPUT_FILE_NAME).openInputStream()) { appender.load(input); - } catch (FileNotFoundException ex) { + } catch (FileNotFoundException | NoSuchFileException ex) { appender.init(); } @@ -105,7 +106,7 @@ public class ConfigFileGenerator extends AbstractProcessor { } catch (IOException e) { processingEnv.getMessager().printMessage(Kind.ERROR, - "Can't generate the config file from annotation: " + e.getMessage()); + "Can't generate the config file from annotation: " + e); } return false; } --------------------------------------------------------------------- To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-commits-h...@hadoop.apache.org