langtools/test/tools/javac/Diagnostics/7010608/Test.java
changeset 40835 6ab9ed1abc46
parent 39812 6272642715a1
equal deleted inserted replaced
40777:e384420383a5 40835:6ab9ed1abc46
    44         Locale prev = Locale.getDefault();
    44         Locale prev = Locale.getDefault();
    45         Locale.setDefault(Locale.ENGLISH);
    45         Locale.setDefault(Locale.ENGLISH);
    46         try {
    46         try {
    47             test(Arrays.<String>asList(),
    47             test(Arrays.<String>asList(),
    48                     "myfo://test:1: error: cannot find symbol");
    48                     "myfo://test:1: error: cannot find symbol");
    49             test(Arrays.asList("-diags:layout=OLD"),
    49             test(Arrays.asList("--diags:layout=OLD"),
    50                     "myfo://test:1: cannot find symbol");
    50                     "myfo://test:1: cannot find symbol");
    51             test(Arrays.asList("-diags:legacy"),
    51             test(Arrays.asList("--diags:legacy"),
    52                     "myfo://test:1: cannot find symbol");
    52                     "myfo://test:1: cannot find symbol");
    53         } finally {
    53         } finally {
    54             Locale.setDefault(prev);
    54             Locale.setDefault(prev);
    55         }
    55         }
    56     }
    56     }