changeset 7229:b99d56d1aa3f

6251788: (rb) PropertyResourceBundle doesn't document exceptions Reviewed-by: okutsu
author naoto
date Tue, 28 May 2013 14:02:49 -0700
parents 7fa2d1dcb8f6
children 1652a22cf6e7
files src/share/classes/java/util/PropertyResourceBundle.java
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/util/PropertyResourceBundle.java	Tue May 28 10:42:52 2013 -0700
+++ b/src/share/classes/java/util/PropertyResourceBundle.java	Tue May 28 14:02:49 2013 -0700
@@ -124,6 +124,8 @@
      *        to read from.
      * @throws IOException if an I/O error occurs
      * @throws NullPointerException if <code>stream</code> is null
+     * @throws IllegalArgumentException if {@code stream} contains a
+     *     malformed Unicode escape sequence.
      */
     @SuppressWarnings({"unchecked", "rawtypes"})
     public PropertyResourceBundle (InputStream stream) throws IOException {
@@ -142,6 +144,8 @@
      *        read from.
      * @throws IOException if an I/O error occurs
      * @throws NullPointerException if <code>reader</code> is null
+     * @throws IllegalArgumentException if a malformed Unicode escape sequence appears
+     *     from {@code reader}.
      * @since 1.6
      */
     @SuppressWarnings({"unchecked", "rawtypes"})