diff -r bc2bb4eee477 -r eac105e3ec13 src/java.base/share/classes/sun/nio/ch/AsynchronousServerSocketChannelImpl.java --- a/src/java.base/share/classes/sun/nio/ch/AsynchronousServerSocketChannelImpl.java Tue Jan 22 11:22:44 2019 +0100 +++ b/src/java.base/share/classes/sun/nio/ch/AsynchronousServerSocketChannelImpl.java Tue Jan 22 12:32:19 2019 +0000 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2008, 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 @@ -40,7 +40,6 @@ import java.util.concurrent.locks.ReentrantReadWriteLock; import sun.net.NetHooks; import sun.net.ext.ExtendedSocketOptions; -import static sun.net.ext.ExtendedSocketOptions.SOCK_STREAM; /** * Base implementation of AsynchronousServerSocketChannel. @@ -236,7 +235,7 @@ if (Net.isReusePortAvailable()) { set.add(StandardSocketOptions.SO_REUSEPORT); } - set.addAll(ExtendedSocketOptions.options(SOCK_STREAM)); + set.addAll(ExtendedSocketOptions.serverSocketOptions()); return Collections.unmodifiableSet(set); } }