< prev index next >

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

Print this page
rev 52700 : 8214170: ResourceBundle.Control.newBundle should throw IllegalAccessException when constructor of the resource bundle is not public.
Reviewed-by: rriggs, mchung

*** 1,7 **** /* ! * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 33,42 **** --- 33,43 ---- callGetBundle("MalformedDataRB", Locale.ENGLISH, IllegalArgumentException.class); callGetBundle("PrivateConstructorRB", IllegalAccessException.class); callGetBundle("AbstractRB", InstantiationException.class); callGetBundle("BadStaticInitRB", ExceptionInInitializerError.class); callGetBundle("UnreadableRB", IOException.class); + callGetBundle("NoNoArgConstructorRB", InstantiationException.class); } private static void callGetBundle(String baseName, Class<? extends Throwable> expectedCause) { callGetBundle(baseName, Locale.getDefault(), expectedCause);
< prev index next >