langtools/src/share/classes/com/sun/tools/javac/util/Log.java
changeset 9071 88cd61b4e5aa
parent 8630 cd9eefe597f6
child 11052 65b9fa7eaf55
equal deleted inserted replaced
9070:f847fe5cad3d 9071:88cd61b4e5aa
   423     /**
   423     /**
   424      * Write out a diagnostic.
   424      * Write out a diagnostic.
   425      */
   425      */
   426     protected void writeDiagnostic(JCDiagnostic diag) {
   426     protected void writeDiagnostic(JCDiagnostic diag) {
   427         if (diagListener != null) {
   427         if (diagListener != null) {
   428             try {
   428             diagListener.report(diag);
   429                 diagListener.report(diag);
   429             return;
   430                 return;
       
   431             }
       
   432             catch (Throwable t) {
       
   433                 throw new ClientCodeException(t);
       
   434             }
       
   435         }
   430         }
   436 
   431 
   437         PrintWriter writer = getWriterForDiagnosticType(diag.getType());
   432         PrintWriter writer = getWriterForDiagnosticType(diag.getType());
   438 
   433 
   439         printLines(writer, diagFormatter.format(diag, messages.getCurrentLocale()));
   434         printLines(writer, diagFormatter.format(diag, messages.getCurrentLocale()));