test/hotspot/jtreg/vmTestbase/nsk/stress/except/except001.java
changeset 52640 3a7d49718852
parent 50169 dd501973095c
equal deleted inserted replaced
52639:fa6e4d0216a1 52640:3a7d49718852
   260      * (The stream <code>out</code> is assigned to <code>System.out</code> here.)
   260      * (The stream <code>out</code> is assigned to <code>System.out</code> here.)
   261      *
   261      *
   262      * @see #run(String[], PrintStream)
   262      * @see #run(String[], PrintStream)
   263      */
   263      */
   264     public static void main(String args[]) {
   264     public static void main(String args[]) {
   265         Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
   265         Thread.currentThread().setUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
   266             // Last try. If there is some exception outside the code, test should end correctly
   266             // Last try. If there is some exception outside the code, test should end correctly
   267             @Override
   267             @Override
   268             public void uncaughtException(Thread t, Throwable e) {
   268             public void uncaughtException(Thread t, Throwable e) {
   269                 try {
   269                 try {
   270                     pool = null;
   270                     pool = null;