atom feed1 message in net.java.dev.jtharness.commitssvn commit: r833 - branches/code/jtha...
FromSent OnAttachments
er...@dev.java.netMar 25, 2008 9:00 am 
Subject:svn commit: r833 - branches/code/jtharness-oss-4_1_3-dev/code/src/com/sun/javatest/TestResultCache.java
From:er...@dev.java.net (er@dev.java.net)
Date:Mar 25, 2008 9:00:25 am
List:net.java.dev.jtharness.commits

Author: ersh Date: 2008-03-25 16:00:22+0000 New Revision: 833

Modified: branches/code/jtharness-oss-4_1_3-dev/code/src/com/sun/javatest/TestResultCache.java

Log: Fix for 6679650 - avoid confused stacktrace

Modified:
branches/code/jtharness-oss-4_1_3-dev/code/src/com/sun/javatest/TestResultCache.java Url:
https://jtharness.dev.java.net/source/browse/jtharness/branches/code/jtharness-oss-4_1_3-dev/code/src/com/sun/javatest/TestResultCache.java?view=diff&rev=833&p1=branches/code/jtharness-oss-4_1_3-dev/code/src/com/sun/javatest/TestResultCache.java&p2=branches/code/jtharness-oss-4_1_3-dev/code/src/com/sun/javatest/TestResultCache.java&r1=832&r2=833 ============================================================================== ---
branches/code/jtharness-oss-4_1_3-dev/code/src/com/sun/javatest/TestResultCache.java
(original) +++
branches/code/jtharness-oss-4_1_3-dev/code/src/com/sun/javatest/TestResultCache.java
2008-03-25 16:00:22+0000 @@ -446,9 +446,13 @@ }

// important to avoid memory leak !!! - if (shutdownHandler != null) { - - Runtime.getRuntime().removeShutdownHook(shutdownHandler); + try { + if (shutdownHandler != null) { + Runtime.getRuntime().removeShutdownHook(shutdownHandler); + } + } + catch(IllegalStateException ex) { + // it's ok if shutdown is in process now } }