diff --git a/tools/api-checker/config/gwt211_212userapi.conf b/tools/api-checker/config/gwt211_212userapi.conf index 1279e029d8..ecd503d03d 100644 --- a/tools/api-checker/config/gwt211_212userapi.conf +++ b/tools/api-checker/config/gwt211_212userapi.conf @@ -149,4 +149,8 @@ excludedPackages com.google.gwt.core.client.impl\ ############################################## #Api whitelist # when adding to the white-list, include comments as to why the addition is -# being made. \ No newline at end of file +# being made. + +# java.io.Reader missing IOException throws for read methods +java.io.Reader::read([C) OVERRIDABLE_METHOD_EXCEPTION_TYPE_CHANGE new method has more exceptions: [Ljava/io/IOException;] +java.io.Reader::read([CII) OVERRIDABLE_METHOD_EXCEPTION_TYPE_CHANGE new method has more exceptions: [Ljava/io/IOException;] diff --git a/user/super/com/google/gwt/emul/java/io/Reader.java b/user/super/com/google/gwt/emul/java/io/Reader.java index 54137991e6..63216ad3a9 100644 --- a/user/super/com/google/gwt/emul/java/io/Reader.java +++ b/user/super/com/google/gwt/emul/java/io/Reader.java @@ -59,7 +59,7 @@ public int read() throws IOException { /** * Attempts to fill {@code buf} with characters up to the size of the array. */ - public int read(char[] buf) { + public int read(char[] buf) throws IOException { return read(buf, 0, buf.length); } @@ -67,7 +67,7 @@ public int read(char[] buf) { * Attempts to fill {@code buf} with up to {@code len} characters. Characters * will be stored in {@code buf} starting at index {@code off}. */ - public abstract int read(char[] buf, int off, int len); + public abstract int read(char[] buf, int off, int len) throws IOException; /** * Returns whether the stream is ready for reading characters.