Skip to content

Commit f27d48e

Browse files
gdamsRealCLanger
authored andcommitted
8287902: UnreadableRB case in MissingResourceCauseTest is not working reliably on Windows
Backport-of: 975316e3e5f1208e4e15eadc2493d25c15554647
1 parent 7340e1b commit f27d48e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/jdk/java/util/ResourceBundle/Control/MissingResourceCauseTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ public static void main(String[] args) {
3434
callGetBundle("PrivateConstructorRB", IllegalAccessException.class);
3535
callGetBundle("AbstractRB", InstantiationException.class);
3636
callGetBundle("BadStaticInitRB", ExceptionInInitializerError.class);
37-
callGetBundle("UnreadableRB", IOException.class);
37+
if (!System.getProperty("os.name").toLowerCase().startsWith("win")) {
38+
callGetBundle("UnreadableRB", IOException.class);
39+
}
3840
}
3941

4042
private static void callGetBundle(String baseName,

0 commit comments

Comments
 (0)