Skip to content

Commit 975316e

Browse files
committed
8287902: UnreadableRB case in MissingResourceCauseTest is not working reliably on Windows
Reviewed-by: naoto
1 parent 0901548 commit 975316e

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
callGetBundle("NoNoArgConstructorRB", InstantiationException.class);
3941
}
4042

0 commit comments

Comments
 (0)