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