netty5/resolver-dns/src
Norman Maurer 9eb124bb62
Don't cause ClassCastException if registration fails during constructing DnsNameResolver. (#8280)
Motivation:

We should not try to cast the Channel to a DatagramChannel as this will cause a ClassCastException.

Modifications:

- Do not cast
- rethrow from constructor if we detect the registration failed.
- Add unit test.

Result:

Propagate correct exception.
2018-09-11 20:34:37 +02:00
..
main/java/io/netty/resolver/dns Don't cause ClassCastException if registration fails during constructing DnsNameResolver. (#8280) 2018-09-11 20:34:37 +02:00
test Don't cause ClassCastException if registration fails during constructing DnsNameResolver. (#8280) 2018-09-11 20:34:37 +02:00