https://issues.apache.org/bugzilla/show_bug.cgi?id=56780

--- Comment #9 from Konstantin Kolinko <knst.koli...@gmail.com> ---
1. If IllegalArgumentException is thrown from static{} block of a class,  is it
fatal for the class or not?

If it were fatal, the static{} block should have try/catch for
IllegalArgumentException.

OK - JSSESocketFactory in Tomcat 7 has such catch, but Tomcat 6 does not have
it yet.

2. This affects RFC_5746_SUPPORTED flag as well, as it will not be initialized
and will remain in the state of "false".

3. Is it possible to try several names in turn in
"SSLContext.getInstance("TLS");"
such as "TLS", "TLSv1.1" and "TLSv1.2"?

4. If this results in null value for DEFAULT_SERVER_PROTOCOLS then maybe

a) Report some error when DEFAULT_SERVER_PROTOCOLS is null?

>From comment 5 we are lucky that passing the null to JRE API call results in an
IllegalArgumentException with some decent message. I feared that it would be a
NullPointerException.

b) Replace it with an empty String[] array. I think the message from JRE will
be more near to the actual problem.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to