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

chris.hegarty at oracle.com chris.hegarty at oracle.com
Thu Nov 29 18:30:27 UTC 2018


Changeset: 26b7f3038e27
Author:    naoto
Date:      2018-11-29 10:13 -0800
URL:       http://hg.openjdk.java.net/jdk/sandbox/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-sandbox-changes mailing list