jdk/test/java/util/Locale/InternationalBAT.java
changeset 21830 668b2337f339
parent 5506 202f599c92aa
child 23010 6dadb192ad81
equal deleted inserted replaced
21829:a3cac8b5ca51 21830:668b2337f339
    37 
    37 
    38 public class InternationalBAT {
    38 public class InternationalBAT {
    39 
    39 
    40     public static void main(String[] args) {
    40     public static void main(String[] args) {
    41         boolean pass = true;
    41         boolean pass = true;
    42         if (!testRequiredLocales()) {
    42 
    43             pass = false;
    43         TimeZone tz = TimeZone.getDefault();
    44         }
    44         try {
    45         if (!testRequiredEncodings()) {
    45             pass &= testRequiredLocales();
    46             pass = false;
    46             pass &= testRequiredEncodings();
       
    47         } finally {
       
    48             TimeZone.setDefault(tz);
    47         }
    49         }
    48 
    50 
    49         if (!pass) {
    51         if (!pass) {
    50             System.out.println("\nSome tests failed.\n"
    52             System.out.println("\nSome tests failed.\n"
    51                     + "If you installed the US-only J2RE for Windows, "
    53                     + "If you installed the US-only J2RE for Windows, "