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