hg: jdk/jdk: 8214170: ResourceBundle.Control.newBundle should throw IllegalAccessException when constructor of the resource bundle is not public.

naoto.sato at oracle.com naoto.sato at oracle.com
Thu Nov 29 18:15:11 UTC 2018


Changeset: 26b7f3038e27
Author:    naoto
Date:      2018-11-29 10:13 -0800
URL:       http://hg.openjdk.java.net/jdk/jdk/rev/26b7f3038e27

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

! src/java.base/share/classes/java/util/ResourceBundle.java
! test/jdk/java/util/ResourceBundle/Control/MissingResourceCauseTest.java
! test/jdk/java/util/ResourceBundle/Control/MissingResourceCauseTest.sh
+ test/jdk/java/util/ResourceBundle/Control/NoNoArgConstructorRB.java



More information about the jdk-all-changes mailing list