changeset 25847 | 90e43c49e318 |
parent 23107 | d4df5e8d24d2 |
--- a/langtools/src/share/classes/com/sun/tools/javap/JavapTask.java Tue Jul 29 15:31:57 2014 -0700 +++ b/langtools/src/share/classes/com/sun/tools/javap/JavapTask.java Wed Jul 30 20:31:39 2014 +0400 @@ -575,6 +575,9 @@ } reportError("err.ioerror", className, msg); result = EXIT_ERROR; + } catch (OutOfMemoryError e) { + reportError("err.nomem"); + result = EXIT_ERROR; } catch (Throwable t) { StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw);