6251788: (rb) PropertyResourceBundle doesn't document exceptions
authornaoto
Tue, 28 May 2013 14:02:49 -0700
changeset 17724 3d31ab54bbc5
parent 17723 ae7be7852a99
child 17725 5d515b9ffbbe
6251788: (rb) PropertyResourceBundle doesn't document exceptions Reviewed-by: okutsu
jdk/src/share/classes/java/util/PropertyResourceBundle.java
--- a/jdk/src/share/classes/java/util/PropertyResourceBundle.java	Tue May 28 10:42:52 2013 -0700
+++ b/jdk/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"})