diff options
author | Neil Fuller <nfuller@google.com> | 2014-05-21 17:31:32 +0100 |
---|---|---|
committer | Neil Fuller <nfuller@google.com> | 2014-05-21 18:02:12 +0100 |
commit | b327df0b7d83f079856304830ff4da92b4a5ea1f (patch) | |
tree | d159f753e4ffa0c76d81c3be5e11deb976306705 /xml | |
parent | 324665480d3bf34b724d9a25a589a89379394139 (diff) | |
download | libcore-b327df0b7d83f079856304830ff4da92b4a5ea1f.zip libcore-b327df0b7d83f079856304830ff4da92b4a5ea1f.tar.gz libcore-b327df0b7d83f079856304830ff4da92b4a5ea1f.tar.bz2 |
Change exception priority for ByteBuffer.put(null)
Commit 7e02765b7ada4e85f941f0a6b0fc60a8a76301f3
made ByteBuffer.put(null) throw a NullPointerException
if the ByteBuffer was read only. Previously it would
throw a ReadOnlyBufferException. The priority
of exceptions is unclear, but this returns the behavior
to what it was before and fixes 3 CTS tests:
ReadOnlyWrappedByteBufferTest.testPutByteBuffer
ReadOnlyHeapByteBufferTest.testPutByteBuffer
ReadOnlyDirectByteBufferTest.testPutByteBuffer
Change-Id: I90dd4b6969a4f31a26651d7b35758f899cc020b4
Diffstat (limited to 'xml')
0 files changed, 0 insertions, 0 deletions