< prev index next >

test/jdk/sun/nio/ch/SelProvider.java

Print this page
rev 59383 : [mq]: final

*** 1,7 **** /* ! * Copyright (c) 2005, 2012, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2005, 2020, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 33,45 **** public static void main(String[] args) throws Exception { String expected = System.getProperty("java.nio.channels.spi.SelectorProvider"); if (expected == null) { String osname = System.getProperty("os.name"); String osver = System.getProperty("os.version"); ! if ("SunOS".equals(osname)) { ! expected = "sun.nio.ch.DevPollSelectorProvider"; ! } else if ("Linux".equals(osname)) { expected = "sun.nio.ch.EPollSelectorProvider"; } else if (osname.contains("OS X")) { expected = "sun.nio.ch.KQueueSelectorProvider"; } else { return; --- 33,43 ---- public static void main(String[] args) throws Exception { String expected = System.getProperty("java.nio.channels.spi.SelectorProvider"); if (expected == null) { String osname = System.getProperty("os.name"); String osver = System.getProperty("os.version"); ! if ("Linux".equals(osname)) { expected = "sun.nio.ch.EPollSelectorProvider"; } else if (osname.contains("OS X")) { expected = "sun.nio.ch.KQueueSelectorProvider"; } else { return;
< prev index next >