changeset 2591:9e8cbfac9b6b

8055039: Sjavac does not print compilation errors to the console Summary: Sjavac (client) now prints the result of the compilation on stdout/stderr. Reviewed-by: jfranck
author alundblad
date Thu, 14 Aug 2014 14:17:17 +0200
parents a5b455614604
children 383432f1719c
files src/share/classes/com/sun/tools/sjavac/CompileJavaPackages.java
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/sun/tools/sjavac/CompileJavaPackages.java	Thu Aug 14 13:05:49 2014 +0200
+++ b/src/share/classes/com/sun/tools/sjavac/CompileJavaPackages.java	Thu Aug 14 14:17:17 2014 +0200
@@ -246,6 +246,8 @@
                     requests[ii].run();
                     // If there was an error, then stop early when running single threaded.
                     if (rn[i].returnCode != 0) {
+                        Log.info(rn[i].stdout);
+                        Log.error(rn[i].stderr);
                         return false;
                     }
                 }
@@ -262,6 +264,8 @@
         for (int i=0; i<numCompiles; ++i) {
             if (compileChunks[i].srcs.size() > 0) {
                 if (rn[i].returnCode != 0) {
+                    Log.info(rn[i].stdout);
+                    Log.error(rn[i].stderr);
                     rc = false;
                 }
             }