changeset 14817:fcafe96a3cda

Fix for 8136698, jlink prints error to stdoutput instead of throwing in class optimization plugin
author jfdenise
date Wed, 23 Dec 2015 09:13:06 +0100
parents a4d427c2c81b
children cb9d90339d43
files src/jdk.jlink/share/classes/jdk/tools/jlink/internal/plugins/OptimizationPlugin.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.jlink/share/classes/jdk/tools/jlink/internal/plugins/OptimizationPlugin.java	Wed Dec 23 09:13:05 2015 +0100
+++ b/src/jdk.jlink/share/classes/jdk/tools/jlink/internal/plugins/OptimizationPlugin.java	Wed Dec 23 09:13:06 2015 +0100
@@ -281,8 +281,8 @@
         if (f != null) {
             try {
                 stream = new FileOutputStream(f);
-            } catch (FileNotFoundException ex) {
-                System.err.println(ex);
+            } catch (IOException ex) {
+                throw new UncheckedIOException(ex);
             }
         }
     }