--- a/src/java.base/macosx/classes/sun/nio/ch/KQueueSelectorProvider.java Tue Sep 24 17:08:19 2019 +0200
+++ b/src/java.base/macosx/classes/sun/nio/ch/KQueueSelectorProvider.java Tue Sep 24 16:19:11 2019 +0100
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -27,6 +27,7 @@
import java.io.IOException;
import java.nio.channels.spi.AbstractSelector;
+import java.nio.channels.*;
public class KQueueSelectorProvider
extends SelectorProviderImpl
@@ -34,4 +35,8 @@
public AbstractSelector openSelector() throws IOException {
return new KQueueSelectorImpl(this);
}
+
+ public Channel inheritedChannel() throws IOException {
+ return InheritedChannel.getChannel();
+ }
}