6760500: test com/sun/javadoc/testSupplementary/TestSupplementary.java is not same-VM safe
Reviewed-by: darcy
--- 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);
+ }
}
/**