DevPollSelector on Linux

Alan Bateman Alan.Bateman at oracle.com
Mon Aug 30 12:50:52 PDT 2010


Martin Buchholz wrote:
> Hi nio maintainers,
>
> It appears that the intent of make/java/nio/Makefile that 
> DevPollSelector* is only built/included on the Solaris platform,
> but ... it it is built/included on Linux as well,
> because ... DefaultSelectorProvider has an explicit reference to it:
>
> ./src/solaris/classes/sun/nio/ch/DefaultSelectorProvider.java:51:            
> return new sun.nio.ch.DevPollSelectorProvider();
>
> Is that a bug?  Should DefaultSelectorProvider use reflection to find 
> its default provider?
>
> Martin
Yes, it's a bug. At one point I replaced the explicit reference with 
reflection but I didn't push the patch at the time (it was part of other 
work to move the DevPolll classes out of src/share/classes).

-Alan.


More information about the nio-dev mailing list