| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The java.nio.Buffer methods {position,limit,mark,reset,clear,flip,rewind}
return "this". In OpenJDK 8, those methods were final and their return
type was Buffer. In OpenJDK 9, the methods changed to nonfinal and the
subclasses {Byte,Char,Double,Float,Int,Long,Short}Buffer gained
overrides whose compile-time return type was that of the subclass.
This CL makes the same change to java.nio.Buffer and adds synthetic
covariant overloads to the subtypes.
Fixes: 71597787
Test: atest CtsLibcoreApiEvolutionTestCases
Change-Id: Ib6f63b6e3dce0212ff7dd60341145ede17a1b454
|