equal
deleted
inserted
replaced
264 * (The stream <code>out</code> is assigned to <code>System.out</code> here.) |
264 * (The stream <code>out</code> is assigned to <code>System.out</code> here.) |
265 * |
265 * |
266 * @see #run(String[], PrintStream) |
266 * @see #run(String[], PrintStream) |
267 */ |
267 */ |
268 public static void main(String args[]) { |
268 public static void main(String args[]) { |
269 Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() { |
269 Thread.currentThread().setUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() { |
270 // Last try. If there is some OOME, test should end correctly |
270 // Last try. If there is some OOME, test should end correctly |
271 @Override |
271 @Override |
272 public void uncaughtException(Thread t, Throwable e) { |
272 public void uncaughtException(Thread t, Throwable e) { |
273 try { |
273 try { |
274 pool = null; |
274 pool = null; |