changeset 1071:b2b41f383c88 jdk8u72-b05

Merge
author robm
date Thu, 22 Oct 2015 22:48:01 +0100
parents 75e1d3d7cf91 (current diff) 70d4d5435eb4 (diff)
children 6aba0f814a15
files
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/jaxws_classes/com/sun/tools/internal/jxc/SchemaGenerator.java	Wed Oct 21 11:35:18 2015 -0700
+++ b/src/share/jaxws_classes/com/sun/tools/internal/jxc/SchemaGenerator.java	Thu Oct 22 22:48:01 2015 +0100
@@ -30,6 +30,7 @@
 import com.sun.xml.internal.bind.util.Which;
 
 import javax.lang.model.SourceVersion;
+import javax.tools.Diagnostic;
 import javax.tools.DiagnosticCollector;
 import javax.tools.JavaCompiler;
 import javax.tools.JavaFileObject;
@@ -239,7 +240,12 @@
             if (episode != null)
                 r.setEpisodeFile(episode);
             task.setProcessors(Collections.singleton(r));
-            return task.call();
+            boolean res = task.call();
+            //Print messages generated by compiler
+            for (Diagnostic<? extends JavaFileObject> d : diagnostics.getDiagnostics()) {
+                 System.err.println(d.toString());
+            }
+            return res;
         }
     }