OpenJDK 11: Merging in java.nio.channels.Selector and SelectionKey.
This is part of merging upstream changes from OpenJDK 11.28. This CL
merges java.nio.channels.Selector and SelectionKey
There are 2 new APIs added for Selector:
int select(Consumer<SelectionKey>, long) throws IOException;
int select(Consumer<SelectionKey>) throws IOException;
int selectNow(Consumer<SelectionKey>) throws IOException;
And 1 added for SelectionKey:
int interestOpsAnd(int);
int interestOpsOr(int);
Tests were added for all of the new APIs.
Test: m droid
Test: atest CtsLibcoreOjTestCases:test.java.nio.channels.Selector.{TestName}
Test: atest CtsLibcoreOjTestCases:test.java.nio.channels.SelectionKey.{TestName}
Change-Id: Ib38b96dfb78074a9ec27a5cbe3711bacec85b828
7 files changed