Commit c3005946 authored by Shubham Ajmera's avatar Shubham Ajmera
Browse files

Fix ordering issue in view ByteBuffer

View buffers use byte buffer object to perform all the read/write operations.
While creating one, instead of creating a duplicate of the origianl byte
buffer object, the view buffers were using it directly. As a result,
when a property on the byte buffer object is changed, all the read
and write operations on the view buffers were affected. To keep their properties
independent of each other, instead of using the byte buffer directly, view
buffers should make a copy of it, and then perform operations.

Test: cts-tradefed run cts -m CtsLibcoreTestCases
Bug: 32655865

Change-Id: I531d2642acf606391bb44b7209a72365cb19fede
parent 8992e392
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment