# HG changeset patch # User robm # Date 1445550481 -3600 # Node ID b2b41f383c882ee7a8c2a54dfb0957aa2764d1f8 # Parent 75e1d3d7cf9195ebb4f7d9cc36ac558b2882fa89# Parent 70d4d5435eb40f083c4f1cc2e10ccde2b079403e Merge diff -r 75e1d3d7cf91 -r b2b41f383c88 src/share/jaxws_classes/com/sun/tools/internal/jxc/SchemaGenerator.java --- 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 d : diagnostics.getDiagnostics()) { + System.err.println(d.toString()); + } + return res; } }