From 8ab9ffdf52f982fc8c69a00c8e3c1521b044cb94 Mon Sep 17 00:00:00 2001 From: jmehrens Date: Tue, 13 Feb 2024 15:02:04 -0600 Subject: [PATCH] Illegal reflective access by com.sun.mail.util.SocketFetcher #124 Co-authored-by: jmehrens Co-authored-by: icu5545 Signed-off-by: jmehrens --- .../java/org/eclipse/angus/mail/util/SocketFetcherTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/providers/angus-mail/src/test/java/org/eclipse/angus/mail/util/SocketFetcherTest.java b/providers/angus-mail/src/test/java/org/eclipse/angus/mail/util/SocketFetcherTest.java index c959d0d..b2745ae 100644 --- a/providers/angus-mail/src/test/java/org/eclipse/angus/mail/util/SocketFetcherTest.java +++ b/providers/angus-mail/src/test/java/org/eclipse/angus/mail/util/SocketFetcherTest.java @@ -353,9 +353,9 @@ public void testSSLHostnameVerifierClassCastException() { @Test public void testSSLHostnameVerifierRemovedAlias() { - //Reserve all identifiers that don't contain a package - //For future use by Angus Mail. - //Ensure removed aliases never fallback to classloading. + //Reserve all identifiers that don't contain a package for future use by + //Angus Mail. Ensure removed aliases never fallback to classloading as + //that might find a malicious class of the same name as the alias. try { testSSLHostnameVerifierClass("localhost", "foobarbaz"); throw new AssertionError("No exception");