langtools/src/share/classes/com/sun/tools/javap/JavapTask.java
changeset 25847 90e43c49e318
parent 23107 d4df5e8d24d2
equal deleted inserted replaced
25846:e7124d0dc984 25847:90e43c49e318
   573                 if (msg == null) {
   573                 if (msg == null) {
   574                     msg = e;
   574                     msg = e;
   575                 }
   575                 }
   576                 reportError("err.ioerror", className, msg);
   576                 reportError("err.ioerror", className, msg);
   577                 result = EXIT_ERROR;
   577                 result = EXIT_ERROR;
       
   578             } catch (OutOfMemoryError e) {
       
   579                 reportError("err.nomem");
       
   580                 result = EXIT_ERROR;
   578             } catch (Throwable t) {
   581             } catch (Throwable t) {
   579                 StringWriter sw = new StringWriter();
   582                 StringWriter sw = new StringWriter();
   580                 PrintWriter pw = new PrintWriter(sw);
   583                 PrintWriter pw = new PrintWriter(sw);
   581                 t.printStackTrace(pw);
   584                 t.printStackTrace(pw);
   582                 pw.close();
   585                 pw.close();