test/hotspot/jtreg/vmTestbase/nsk/stress/except/except008.java
changeset 52640 3a7d49718852
parent 50169 dd501973095c
equal deleted inserted replaced
52639:fa6e4d0216a1 52640:3a7d49718852
   331      * (The stream <code>out</code> is assigned to <code>System.out</code> here.)
   331      * (The stream <code>out</code> is assigned to <code>System.out</code> here.)
   332      *
   332      *
   333      * @see #run(String[], PrintStream)
   333      * @see #run(String[], PrintStream)
   334      */
   334      */
   335     public static void main(String args[]) {
   335     public static void main(String args[]) {
   336         Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
   336         Thread.currentThread().setUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
   337             // Last try. If there is some exception outside the code, test should end correctly
   337             // Last try. If there is some exception outside the code, test should end correctly
   338             @Override
   338             @Override
   339             public void uncaughtException(Thread t, Throwable e) {
   339             public void uncaughtException(Thread t, Throwable e) {
   340                 try {
   340                 try {
   341                     pool = null;
   341                     pool = null;