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
Loading
Please sign in to comment