diff options
author | Tobias Thierer <tobiast@google.com> | 2019-01-24 16:04:18 +0000 |
---|---|---|
committer | Tobias Thierer <tobiast@google.com> | 2019-01-24 18:42:47 +0000 |
commit | d708f23a17ac382fde8ddda029430cf88821621f (patch) | |
tree | 8e8dacd2d9ba0bdb3dd39e1e577b17857ebcebcf /ojluni/annotations/hiddenapi/java/util/HashMap.java | |
parent | af8b6bd4af9da1f0be94a73776d78f048cea9e22 (diff) |
Add *Buffer covariant method overloads.
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
Diffstat (limited to 'ojluni/annotations/hiddenapi/java/util/HashMap.java')
0 files changed, 0 insertions, 0 deletions