test/hotspot/jtreg/vmTestbase/nsk/stress/except/except007.java
changeset 52640 3a7d49718852
parent 50169 dd501973095c
equal deleted inserted replaced
52639:fa6e4d0216a1 52640:3a7d49718852
   348      * (The stream <code>out</code> is assigned to <code>System.out</code> here.)
   348      * (The stream <code>out</code> is assigned to <code>System.out</code> here.)
   349      *
   349      *
   350      * @see #run(String[], PrintStream)
   350      * @see #run(String[], PrintStream)
   351      */
   351      */
   352     public static void main(String args[]) {
   352     public static void main(String args[]) {
   353         Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
   353         Thread.currentThread().setUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
   354             // Last try. If there is some exception outside the code, test should end correctly
   354             // Last try. If there is some exception outside the code, test should end correctly
   355             @Override
   355             @Override
   356             public void uncaughtException(Thread t, Throwable e) {
   356             public void uncaughtException(Thread t, Throwable e) {
   357                 try {
   357                 try {
   358                     pool = null;
   358                     pool = null;