8287902: UnreadableRB case in MissingResourceCauseTest is not working reliably on Windows

Backport-of: 975316e3e5
This commit is contained in:
Christoph Langer 2022-07-11 17:46:22 +00:00
parent 62fbc3f883
commit 39715f3da7

View File

@ -34,7 +34,9 @@ public class MissingResourceCauseTest {
callGetBundle("PrivateConstructorRB", IllegalAccessException.class);
callGetBundle("AbstractRB", InstantiationException.class);
callGetBundle("BadStaticInitRB", ExceptionInInitializerError.class);
callGetBundle("UnreadableRB", IOException.class);
if (!System.getProperty("os.name").toLowerCase().startsWith("win")) {
callGetBundle("UnreadableRB", IOException.class);
}
callGetBundle("NoNoArgConstructorRB", InstantiationException.class);
}