Skip to content

Commit

Permalink
Illegal reflective access by com.sun.mail.util.SocketFetcher eclipse-…
Browse files Browse the repository at this point in the history
…ee4j#124

Co-authored-by: jmehrens <[email protected]>
Co-authored-by: icu5545 <[email protected]>
Signed-off-by: jmehrens <[email protected]>
  • Loading branch information
jmehrens committed Feb 14, 2024
1 parent a4a8d59 commit e1ec677
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -670,9 +670,8 @@ private static void configureSSLSocket(Socket socket, String host,
try {
checkServerIdentity(getHostnameVerifier(props, prefix),
host, sslsocket);
} catch (IOException ioe) {
throw cleanupAndThrow(sslsocket,ioe);
} catch (ReflectiveOperationException | RuntimeException | LinkageError re) {
} catch (IOException | ReflectiveOperationException
| RuntimeException | LinkageError re) {
throw cleanupAndThrow(sslsocket,
new IOException("Unable to check server identity for: "
+ host, re));
Expand Down Expand Up @@ -742,7 +741,7 @@ private static void checkServerIdentity(HostnameVerifier hnv,
// Check against the server name(s) as expressed in server certificate
if (!hnv.verify(server, sslSocket.getSession())) {
throw new IOException("Server identity does not match "
+ "authentication scheme: " + server);
+ "authentication scheme: " + hnv + " DENY");
}
}

Expand Down

0 comments on commit e1ec677

Please sign in to comment.