6760500: test com/sun/javadoc/testSupplementary/TestSupplementary.java is not same-VM safe
authorjjg
Thu, 16 Oct 2008 16:53:56 -0700
changeset 1482 5a6b392f0556
parent 1481 412a7987385c
child 1483 2540545cd060
6760500: test com/sun/javadoc/testSupplementary/TestSupplementary.java is not same-VM safe Reviewed-by: darcy
langtools/test/com/sun/javadoc/testSupplementary/TestSupplementary.java
--- a/langtools/test/com/sun/javadoc/testSupplementary/TestSupplementary.java	Thu Oct 16 18:07:37 2008 +0100
+++ b/langtools/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);
+        }
     }
 
     /**