Skip to content

Commit

Permalink
Illegal reflective access by com.sun.mail.util.SocketFetcher #124
Browse files Browse the repository at this point in the history
Co-authored-by: jmehrens <jason_mehrens@hotmail.com>
Co-authored-by: icu5545 <icu5545@github.com>
Signed-off-by: jmehrens <jason_mehrens@hotmail.com>
  • Loading branch information
jmehrens committed Feb 11, 2024
1 parent 7a7f559 commit 522bb81
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1119,9 +1119,15 @@ public boolean verify(String server, SSLSession ssls) {
logger.log(Level.FINER, "HostnameChecker FAIL", roe);
try {
if (or.verify(server, ssls)) {
if (logger.isLoggable(Level.FINER)) {
logger.log(Level.FINER, "allowed by: {0}",
Objects.toString(or));
}
return true;
}
} catch (Throwable t) {
if (logger.isLoggable(Level.FINER))
logger.log(Level.FINER, Objects.toString(or), t);
if (t != roe)
t.addSuppressed(roe);
throw t;
Expand Down

0 comments on commit 522bb81

Please sign in to comment.