changeset 31873 | 87b015c2cd36 |
parent 30338 | 957ee8b5a33a |
child 33662 | 747a61ad0977 |
child 33656 | ef901bc43f7a |
--- a/jdk/src/java.base/share/classes/java/nio/Heap-X-Buffer.java.template Fri Jul 24 18:57:04 2015 +0200 +++ b/jdk/src/java.base/share/classes/java/nio/Heap-X-Buffer.java.template Fri Jul 24 11:52:30 2015 -0700 @@ -216,7 +216,7 @@ #if[rw] if (src instanceof Heap$Type$Buffer) { if (src == this) - throw new IllegalArgumentException(); + throw createSameBufferException(); Heap$Type$Buffer sb = (Heap$Type$Buffer)src; int n = sb.remaining(); if (n > remaining())