Re: 8236925: (dc) Upgrade DatagramChannel socket adaptor to extend MulticastSocket

2020-01-16 Thread Chris Hegarty
> On 16 Jan 2020, at 12:10, Alan Bateman wrote: > > On 16/01/2020 11:45, Chris Hegarty wrote: >> : >> Generally, I agree with updating the socket adapter to support >> multicast. It will certainly help with future work in this area. >> >> The instanceof checks in the constructors highlight tha

Re: 8236925: (dc) Upgrade DatagramChannel socket adaptor to extend MulticastSocket

2020-01-16 Thread Alan Bateman
On 16/01/2020 11:45, Chris Hegarty wrote: : Generally, I agree with updating the socket adapter to support multicast. It will certainly help with future work in this area. The instanceof checks in the constructors highlight that there is an abstraction missing here - to support creating a custom

Re: 8236925: (dc) Upgrade DatagramChannel socket adaptor to extend MulticastSocket

2020-01-16 Thread Chris Hegarty
> On 14 Jan 2020, at 19:23, Alan Bateman wrote: > > ... > Here's the updated webrev that changes oldImpl to be final. >http://cr.openjdk.java.net/~alanb/8236925/2/webrev/ Generally, I agree with updating the socket adapter to support multicast. It will certainly help with future work in t

Re: 8236925: (dc) Upgrade DatagramChannel socket adaptor to extend MulticastSocket

2020-01-14 Thread Daniel Fuchs
Looks good Alan! best regards. -- daniel On 14/01/20 19:23, Alan Bateman wrote: Thanks for going through this. I tried to keep the changes to DatagramSocket to a minimum but I don't mind making an exception for oldImpl. It's a slippery slope as there is a lot of technical debt in this area.

Re: 8236925: (dc) Upgrade DatagramChannel socket adaptor to extend MulticastSocket

2020-01-14 Thread Alan Bateman
On 14/01/2020 17:49, Daniel Fuchs wrote: Hi Alan, Globally this looks good to me. One small nit is that the `oldImpl` field could now also become final (by applying the same trick you did with createImpl - that is - have oldImpl() return a boolean rather than set the field and assign the result

Re: 8236925: (dc) Upgrade DatagramChannel socket adaptor to extend MulticastSocket

2020-01-14 Thread Daniel Fuchs
Hi Alan, Globally this looks good to me. One small nit is that the `oldImpl` field could now also become final (by applying the same trick you did with createImpl - that is - have oldImpl() return a boolean rather than set the field and assign the result in the constructor. I've imported your pa