diff options
author | Serguei Katkov <serguei.i.katkov@intel.com> | 2016-08-15 16:42:59 +0700 |
---|---|---|
committer | Shubham Ajmera <shubhamajmera@google.com> | 2016-08-17 14:30:56 +0000 |
commit | 3f7495294d8b27c00ff647773fcac75afe10c629 (patch) | |
tree | 7a3ba24c92dcfffcf32f171fa67373fc8ba5b3c5 /annotations/generate_annotated_java_files.py | |
parent | 4abb9a349cad85d17830d9219d2a2796eaf533af (diff) |
Unify exception order in java.nio.Buffer subclasses
The bulk methods <Type>Buffer.put(<Type>Buffer) produces
two problems causing IllegalArgumentException and
ReadOnlyBufferException exceptions.
To unify the order of exception IllegalArgumentException
will be thrown first.
The tests are update to expect IllegalArgumentException
in the condition above.
Test: run cts -p android.core.tests.libcore.package.harmony_java_nio,
run cts -c libcore.java.nio.BufferTest,
run cts -c libcore.java.nio.CharBufferTest,
run cts -c libcore.java.nio.NoArrayTest,
run cts -c libcore.java.nio.OldAndroidNIOTest,
run cts -c libcore.java.nio.OldDirectIntBufferTest
run cts -c libcore.java.nio.OldDirectShortBufferTest
Change-Id: If3314c29b193425d6255a32a1841d2b7bb9a767d
Signed-off-by: Serguei Katkov <serguei.i.katkov@intel.com>
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions