According to the spec, The SNIHostName constructors should throw an IllegalArgumentException when the hostname ends with a trailing dot. The exception is not being thrown.
JDK-8022758 IDN.toASCII() does not throw IAE for "example..com".