8055039: Sjavac does not print compilation errors to the console
authoralundblad
Thu, 14 Aug 2014 14:17:17 +0200
changeset 26105 30e8bff3803b
parent 26104 34de7e01b3c1
child 26106 8af1fa613176
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
langtools/src/share/classes/com/sun/tools/sjavac/CompileJavaPackages.java
--- a/langtools/src/share/classes/com/sun/tools/sjavac/CompileJavaPackages.java	Thu Aug 14 13:05:49 2014 +0200
+++ b/langtools/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;
                 }
             }