Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Javadoc wrote:the expression '.' (dot) matches any character, including a line terminator. By default this expression does not match line terminators.
Campbell Ritchie wrote:if you try to call the method from "A" then your "C" object NO-LONGER-IS-An "A".
And I won't tell you how you can cheat with a classcast.