6760500: test com/sun/javadoc/testSupplementary/TestSupplementary.java is not same-VM safe

Thu, 16 Oct 2008 16:53:56 -0700

author
jjg
date
Thu, 16 Oct 2008 16:53:56 -0700
changeset 147
402183e8d6e1
parent 146
6fcc8de719f5
child 148
eca4bf37b66e

6760500: test com/sun/javadoc/testSupplementary/TestSupplementary.java is not same-VM safe
Reviewed-by: darcy

test/com/sun/javadoc/testSupplementary/TestSupplementary.java file | annotate | diff | comparison | revisions
     1.1 --- a/test/com/sun/javadoc/testSupplementary/TestSupplementary.java	Thu Oct 16 18:07:37 2008 +0100
     1.2 +++ b/test/com/sun/javadoc/testSupplementary/TestSupplementary.java	Thu Oct 16 16:53:56 2008 -0700
     1.3 @@ -33,6 +33,8 @@
     1.4   * @run main TestSupplementary
     1.5   */
     1.6  
     1.7 +import java.util.Locale;
     1.8 +
     1.9  public class TestSupplementary extends JavadocTester {
    1.10  
    1.11      private static final String BUG_ID = "4914724";
    1.12 @@ -56,9 +58,14 @@
    1.13       * @param args the array of command line arguments.
    1.14       */
    1.15      public static void main(String[] args) {
    1.16 -        TestSupplementary tester = new TestSupplementary();
    1.17 -        run(tester, ARGS, TEST, NEGATED_TEST);
    1.18 -        tester.printSummary();
    1.19 +        Locale saveLocale = Locale.getDefault();
    1.20 +        try {
    1.21 +            TestSupplementary tester = new TestSupplementary();
    1.22 +            run(tester, ARGS, TEST, NEGATED_TEST);
    1.23 +            tester.printSummary();
    1.24 +        } finally {
    1.25 +            Locale.setDefault(saveLocale);
    1.26 +        }
    1.27      }
    1.28  
    1.29      /**

mercurial