Mercurial > hg > release > icedtea8-forest-3.0 > langtools
changeset 146:402183e8d6e1
6760500: test com/sun/javadoc/testSupplementary/TestSupplementary.java is not same-VM safe
Reviewed-by: darcy
author | jjg |
---|---|
date | Thu, 16 Oct 2008 16:53:56 -0700 |
parents | 6fcc8de719f5 |
children | eca4bf37b66e |
files | test/com/sun/javadoc/testSupplementary/TestSupplementary.java |
diffstat | 1 files changed, 10 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/test/com/sun/javadoc/testSupplementary/TestSupplementary.java Thu Oct 16 18:07:37 2008 +0100 +++ b/test/com/sun/javadoc/testSupplementary/TestSupplementary.java Thu Oct 16 16:53:56 2008 -0700 @@ -33,6 +33,8 @@ * @run main TestSupplementary */ +import java.util.Locale; + public class TestSupplementary extends JavadocTester { private static final String BUG_ID = "4914724"; @@ -56,9 +58,14 @@ * @param args the array of command line arguments. */ public static void main(String[] args) { - TestSupplementary tester = new TestSupplementary(); - run(tester, ARGS, TEST, NEGATED_TEST); - tester.printSummary(); + Locale saveLocale = Locale.getDefault(); + try { + TestSupplementary tester = new TestSupplementary(); + run(tester, ARGS, TEST, NEGATED_TEST); + tester.printSummary(); + } finally { + Locale.setDefault(saveLocale); + } } /**