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