changeset 36947 | 83319fc2c7ac |
parent 26720 | 6b160d97c51d |
--- a/jdk/src/java.base/share/classes/sun/net/TransferProtocolClient.java Wed Apr 06 17:54:41 2016 +0200 +++ b/jdk/src/java.base/share/classes/sun/net/TransferProtocolClient.java Wed Apr 06 21:31:48 2016 +0100 @@ -83,7 +83,7 @@ code = Integer.parseInt(response, 0, 3, 10); } catch (NumberFormatException e) { code = -1; - } catch (StringIndexOutOfBoundsException e) { + } catch (IndexOutOfBoundsException e) { /* this line doesn't contain a response code, so we just completely ignore it */ continue;