Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test failure with java-21 on LogManagerPropertiesTest #700

Closed
vaukai opened this issue Nov 10, 2023 · 2 comments · Fixed by #704
Closed

Test failure with java-21 on LogManagerPropertiesTest #700

vaukai opened this issue Nov 10, 2023 · 2 comments · Fixed by #704
Assignees
Labels
bug Something isn't working

Comments

@vaukai
Copy link

vaukai commented Nov 10, 2023

With Java 21 Gentoo gets a test failure:

There was 1 failure:
1) testCheckAccessPresent(com.sun.mail.util.logging.LogManagerPropertiesTest)
java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release
        at java.base/java.lang.System.setSecurityManager(System.java:429)
        at com.sun.mail.util.logging.LogManagerPropertiesTest.testCheckAccessPresent(LogManagerPropertiesTest.java:89)

FAILURES!!!
Tests run: 1084,  Failures: 1

The full build log is here:

�[32m * �[39;49;00mPackage:    dev-java/jakarta-mail-2.0.1:0
�[32m * �[39;49;00mRepository: gentoo
�[32m * �[39;49;00mMaintainer: [email protected]
�[32m * �[39;49;00mUSE:        abi_x86_64 amd64 elibc_glibc kernel_linux test
�[32m * �[39;49;00mFEATURES:   network-sandbox preserve-libs sandbox test userpriv usersandbox
debug:   eclass exists: /var/db/repos/gentoo/eclass/java-pkg-2.eclass
debug: inherit: java-pkg-2 -> /var/db/repos/gentoo/eclass/java-pkg-2.eclass
debug: *** Multiple Inheritance (Level: 2)
debug:   eclass exists: /var/db/repos/gentoo/eclass/java-utils-2.eclass
debug: inherit: java-utils-2 -> /var/db/repos/gentoo/eclass/java-utils-2.eclass
debug: EXPORT_FUNCTIONS: pkg_setup -> java-pkg-2_pkg_setup
debug: EXPORT_FUNCTIONS: src_prepare -> java-pkg-2_src_prepare
debug: EXPORT_FUNCTIONS: src_compile -> java-pkg-2_src_compile
debug: EXPORT_FUNCTIONS: pkg_preinst -> java-pkg-2_pkg_preinst
debug:   eclass exists: /var/db/repos/gentoo/eclass/java-pkg-simple.eclass
debug: inherit: java-pkg-simple -> /var/db/repos/gentoo/eclass/java-pkg-simple.eclass
debug: *** Multiple Inheritance (Level: 2)
debug:   eclass exists: /var/db/repos/gentoo/eclass/java-utils-2.eclass
debug: inherit: java-utils-2 -> /var/db/repos/gentoo/eclass/java-utils-2.eclass
debug: EXPORT_FUNCTIONS: src_compile -> java-pkg-simple_src_compile
debug: EXPORT_FUNCTIONS: src_install -> java-pkg-simple_src_install
debug: EXPORT_FUNCTIONS: src_test -> java-pkg-simple_src_test
debug: java-pkg_init: entering function, parameters: 
debug: java-pkg_switch-vm: entering function, parameters: 
debug: java-pkg_needs-vm: entering function, parameters: 
debug: depend-java-query:  NV_DEPEND:	
	>=virtual/jdk-11:*
	dev-java/jakarta-activation:2
 >=dev-java/java-config-2.2.0-r3 source? ( app-arch/zip ) test? (  dev-java/junit:4 )
debug: Using: openjdk-21
debug: java-pkg_setup-vm: entering function, parameters: 
debug: java-pkg_get-vm-vendor: entering function, parameters: 
debug: java-pkg_javac-args: entering function, parameters: 
debug: want source: 1.8
debug: want target: 1.8
debug: java-pkg_append_: entering function, parameters: LD_LIBRARY_PATH /usr/lib64/openjdk-21/lib/:/usr/lib64/openjdk-21/lib/server/
 �[32m*�[0m Using: openjdk-21
>>> Unpacking source...
>>> Unpacking jakarta-mail-2.0.1.tar.gz to /var/tmp/portage/dev-java/jakarta-mail-2.0.1/work
>>> Source unpacked in /var/tmp/portage/dev-java/jakarta-mail-2.0.1/work
>>> Preparing source in /var/tmp/portage/dev-java/jakarta-mail-2.0.1/work/mail-api-2.0.1/mail ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-java/jakarta-mail-2.0.1/work/mail-api-2.0.1/mail ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-java/jakarta-mail-2.0.1/work/mail-api-2.0.1/mail ...
debug: java-pkg_gen-cp: entering function, parameters: JAVA_GENTOO_CLASSPATH
debug: java-pkg-simple_getclasspath: entering function, parameters: 
debug: java-pkg_getjars: entering function, parameters: --build-only --with-dependencies junit-4
debug: junit-4:/usr/share/junit-4/lib/junit.jar:/usr/share/hamcrest-core-1.3/lib/hamcrest-core.jar
debug: java-pkg_ensure-dep: entering function, parameters: build junit-4
debug: Matching against: /junit(-4(-[^:]+)?:0|(-[^:]+)?:4)\b
debug: java-pkg_record-jar_: entering function, parameters: --build-only junit-4
debug: java-pkg_getjars: entering function, parameters: --with-dependencies jakarta-activation-2
debug: jakarta-activation-2:/usr/share/jakarta-activation-2/lib/jakarta-activation.jar
debug: java-pkg_ensure-dep: entering function, parameters: jakarta-activation-2
debug: Matching against: /jakarta-activation(-2(-[^:]+)?:0|(-[^:]+)?:2)\b
debug: java-pkg_record-jar_: entering function, parameters: jakarta-activation-2
debug: CLASSPATH=/usr/share/junit-4/lib/junit.jar:/usr/share/hamcrest-core-1.3/lib/hamcrest-core.jar:/usr/share/jakarta-activation-2/lib/jakarta-activation.jar
debug: java-pkg-simple_prepend_resources: entering function, parameters: target/classes src/main/resources
debug: ejavac: entering function, parameters: -d target/classes -encoding iso-8859-1 -classpath /usr/share/junit-4/lib/junit.jar:/usr/share/hamcrest-core-1.3/lib/hamcrest-core.jar:/usr/share/jakarta-activation-2/lib/jakarta-activation.jar @sources.lst
debug: java-pkg_get-javac: entering function, parameters: 
debug: java-pkg_init-compiler_: entering function, parameters: 
debug: Read "" from /etc/java-config-2/build/compilers.conf
debug: java-pkg_javac-args: entering function, parameters: 
debug: want source: 1.8
debug: want target: 1.8
 �[32m*�[0m Verbose logging for "ejavac" function
 �[32m*�[0m Compiler executable: javac
 �[32m*�[0m Extra arguments: -source 1.8 -target 1.8
 �[32m*�[0m Complete command:
 �[32m*�[0m javac -source 1.8 -target 1.8 -d target/classes -encoding iso-8859-1 -classpath /usr/share/junit-4/lib/junit.jar:/usr/share/hamcrest-core-1.3/lib/hamcrest-core.jar:/usr/share/jakarta-activation-2/lib/jakarta-activation.jar @sources.lst
javac -source 1.8 -target 1.8 -d target/classes -encoding iso-8859-1 -classpath /usr/share/junit-4/lib/junit.jar:/usr/share/hamcrest-core-1.3/lib/hamcrest-core.jar:/usr/share/jakarta-activation-2/lib/jakarta-activation.jar @sources.lst
warning: [options] bootstrap class path not set in conjunction with -source 8
warning: [options] source value 8 is obsolete and will be removed in a future release
warning: [options] target value 8 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
src/main/java/com/sun/mail/util/logging/LogManagerProperties.java:24: warning: [removal] AccessController in java.security has been deprecated and marked for removal
import java.security.AccessController;
                    ^
src/main/java/com/sun/mail/util/logging/MailHandler.java:27: warning: [removal] AccessController in java.security has been deprecated and marked for removal
import java.security.AccessController;
                    ^
src/main/java/jakarta/mail/util/SharedFileInputStream.java:123: warning: [removal] finalize() in Object has been deprecated and marked for removal
	protected void finalize() throws Throwable {
	               ^
src/main/java/jakarta/mail/util/SharedFileInputStream.java:127: warning: [removal] finalize() in Object has been deprecated and marked for removal
		super.finalize();
		     ^
src/main/java/jakarta/mail/util/SharedFileInputStream.java:535: warning: [removal] finalize() in Object has been deprecated and marked for removal
    protected void finalize() throws Throwable {
                   ^
src/main/java/jakarta/mail/util/SharedFileInputStream.java:536: warning: [removal] finalize() in Object has been deprecated and marked for removal
	super.finalize();
	     ^
src/main/java/jakarta/mail/Folder.java:1635: warning: [removal] finalize() in Object has been deprecated and marked for removal
    protected void finalize() throws Throwable {
                   ^
src/main/java/jakarta/mail/Folder.java:1639: warning: [removal] finalize() in Object has been deprecated and marked for removal
	    super.finalize();
	         ^
src/main/java/jakarta/mail/Session.java:216: warning: [removal] AccessController in java.security has been deprecated and marked for removal
	    dir = AccessController.doPrivileged(
	          ^
src/main/java/jakarta/mail/Session.java:352: warning: [removal] SecurityManager in java.lang has been deprecated and marked for removal
	    SecurityManager security = System.getSecurityManager();
	    ^
src/main/java/jakarta/mail/Session.java:352: warning: [removal] getSecurityManager() in System has been deprecated and marked for removal
	    SecurityManager security = System.getSecurityManager();
	                                     ^
src/main/java/jakarta/mail/Session.java:1259: warning: [removal] AccessController in java.security has been deprecated and marked for removal
	return AccessController.doPrivileged(
	       ^
src/main/java/jakarta/mail/Session.java:1277: warning: [removal] AccessController in java.security has been deprecated and marked for removal
	    return AccessController.doPrivileged(
	           ^
src/main/java/jakarta/mail/Session.java:1299: warning: [removal] AccessController in java.security has been deprecated and marked for removal
	return AccessController.doPrivileged(new PrivilegedAction<URL[]>() {
	       ^
src/main/java/jakarta/mail/Session.java:1317: warning: [removal] AccessController in java.security has been deprecated and marked for removal
	return AccessController.doPrivileged(new PrivilegedAction<URL[]>() {
	       ^
src/main/java/jakarta/mail/Session.java:1337: warning: [removal] AccessController in java.security has been deprecated and marked for removal
	    return AccessController.doPrivileged(
	           ^
src/main/java/jakarta/mail/Service.java:636: warning: [removal] finalize() in Object has been deprecated and marked for removal
    protected void finalize() throws Throwable {
                   ^
src/main/java/jakarta/mail/Service.java:640: warning: [removal] finalize() in Object has been deprecated and marked for removal
	    super.finalize();
	         ^
src/main/java/com/sun/mail/util/logging/LogManagerProperties.java:229: warning: [removal] checkAccess() in LogManager has been deprecated and marked for removal
                    ((LogManager) m).checkAccess();
                                    ^
src/main/java/com/sun/mail/util/logging/LogManagerProperties.java:274: warning: [removal] SecurityManager in java.lang has been deprecated and marked for removal
            final SecurityManager sm = System.getSecurityManager();
                  ^
src/main/java/com/sun/mail/util/logging/LogManagerProperties.java:274: warning: [removal] getSecurityManager() in System has been deprecated and marked for removal
            final SecurityManager sm = System.getSecurityManager();
                                             ^
src/main/java/com/sun/mail/util/logging/LogManagerProperties.java:730: warning: [removal] ThreadDeath in java.lang has been deprecated and marked for removal
                    | cause instanceof ThreadDeath) {
                                       ^
src/main/java/com/sun/mail/util/logging/LogManagerProperties.java:808: warning: [removal] AccessController in java.security has been deprecated and marked for removal
        return AccessController.doPrivileged(new PrivilegedAction<ClassLoader[]>() {
               ^
src/main/java/com/sun/mail/util/logging/MailHandler.java:4142: warning: [removal] AccessController in java.security has been deprecated and marked for removal
                return AccessController.doPrivileged(pa);
                       ^
src/main/java/com/sun/mail/util/SocketFetcher.java:884: warning: [removal] AccessController in java.security has been deprecated and marked for removal
	AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
	^
src/main/java/com/sun/mail/util/MimeUtil.java:93: warning: [removal] AccessController in java.security has been deprecated and marked for removal
	AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
	^
src/main/java/com/sun/mail/pop3/TempFile.java:60: warning: [removal] finalize() in Object has been deprecated and marked for removal
    protected void finalize() throws Throwable {
                   ^
src/main/java/com/sun/mail/pop3/TempFile.java:64: warning: [removal] finalize() in Object has been deprecated and marked for removal
	    super.finalize();
	         ^
src/main/java/com/sun/mail/pop3/Protocol.java:201: warning: [removal] finalize() in Object has been deprecated and marked for removal
    protected void finalize() throws Throwable {
                   ^
src/main/java/com/sun/mail/pop3/Protocol.java:206: warning: [removal] finalize() in Object has been deprecated and marked for removal
	    super.finalize();
	         ^
src/main/java/com/sun/mail/iap/Protocol.java:708: warning: [removal] finalize() in Object has been deprecated and marked for removal
    protected void finalize() throws Throwable {
                   ^
src/main/java/com/sun/mail/iap/Protocol.java:712: warning: [removal] finalize() in Object has been deprecated and marked for removal
	    super.finalize();
	         ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
36 warnings
debug: java-pkg_is-vm-version-ge: entering function, parameters: 9
debug: java-pkg_get-vm-version: entering function, parameters: 
debug: Detected a JDK(21) >= 9
debug: ejavac: entering function, parameters: -d target/classes -encoding iso-8859-1 --module-path /usr/share/junit-4/lib/junit.jar:/usr/share/hamcrest-core-1.3/lib/hamcrest-core.jar:/usr/share/jakarta-activation-2/lib/jakarta-activation.jar --module-version 2.0.1 src/main/java/module-info.java
debug: java-pkg_get-javac: entering function, parameters: 
debug: java-pkg_init-compiler_: entering function, parameters: 
debug: Read "" from /etc/java-config-2/build/compilers.conf
debug: java-pkg_javac-args: entering function, parameters: 
debug: want source: 9
debug: want target: 9
 �[32m*�[0m Verbose logging for "ejavac" function
 �[32m*�[0m Compiler executable: javac
 �[32m*�[0m Extra arguments: -source 9 -target 9
 �[32m*�[0m Complete command:
 �[32m*�[0m javac -source 9 -target 9 -d target/classes -encoding iso-8859-1 --module-path /usr/share/junit-4/lib/junit.jar:/usr/share/hamcrest-core-1.3/lib/hamcrest-core.jar:/usr/share/jakarta-activation-2/lib/jakarta-activation.jar --module-version 2.0.1 src/main/java/module-info.java
javac -source 9 -target 9 -d target/classes -encoding iso-8859-1 --module-path /usr/share/junit-4/lib/junit.jar:/usr/share/hamcrest-core-1.3/lib/hamcrest-core.jar:/usr/share/jakarta-activation-2/lib/jakarta-activation.jar --module-version 2.0.1 src/main/java/module-info.java
warning: [options] system modules path not set in conjunction with -source 9
1 warning
>>> Source compiled.
>>> Test phase: dev-java/jakarta-mail-2.0.1
/var/tmp/portage/dev-java/jakarta-mail-2.0.1/work/mail-api-2.0.1/mail/src/test/java /var/tmp/portage/dev-java/jakarta-mail-2.0.1/work/mail-api-2.0.1/mail
/var/tmp/portage/dev-java/jakarta-mail-2.0.1/work/mail-api-2.0.1/mail
debug: java-pkg-simple_getclasspath: entering function, parameters: 
debug: java-pkg_getjars: entering function, parameters: --build-only --with-dependencies junit-4
debug: junit-4:/usr/share/junit-4/lib/junit.jar:/usr/share/hamcrest-core-1.3/lib/hamcrest-core.jar
debug: java-pkg_ensure-dep: entering function, parameters: build junit-4
debug: Matching against: /junit(-4(-[^:]+)?:0|(-[^:]+)?:4)\b
debug: java-pkg_record-jar_: entering function, parameters: --build-only junit-4
debug: java-pkg_getjars: entering function, parameters: --with-dependencies jakarta-activation-2
debug: jakarta-activation-2:/usr/share/jakarta-activation-2/lib/jakarta-activation.jar
debug: java-pkg_ensure-dep: entering function, parameters: build jakarta-activation-2
debug: Matching against: /jakarta-activation(-2(-[^:]+)?:0|(-[^:]+)?:2)\b
debug: java-pkg_record-jar_: entering function, parameters: --build-only jakarta-activation-2
debug: CLASSPATH=target/test-classes:jakarta-mail.jar:/usr/share/junit-4/lib/junit.jar:/usr/share/hamcrest-core-1.3/lib/hamcrest-core.jar:/usr/share/jakarta-activation-2/lib/jakarta-activation.jar
debug: java-pkg-simple_prepend_resources: entering function, parameters: target/test-classes src/test/resources
debug: ejavac: entering function, parameters: -d target/test-classes -encoding iso-8859-1 -classpath target/test-classes:jakarta-mail.jar:/usr/share/junit-4/lib/junit.jar:/usr/share/hamcrest-core-1.3/lib/hamcrest-core.jar:/usr/share/jakarta-activation-2/lib/jakarta-activation.jar @test_sources.lst
debug: java-pkg_get-javac: entering function, parameters: 
debug: java-pkg_init-compiler_: entering function, parameters: 
debug: Read "" from /etc/java-config-2/build/compilers.conf
debug: java-pkg_javac-args: entering function, parameters: 
debug: want source: 1.8
debug: want target: 1.8
 �[32m*�[0m Verbose logging for "ejavac" function
 �[32m*�[0m Compiler executable: javac
 �[32m*�[0m Extra arguments: -source 1.8 -target 1.8
 �[32m*�[0m Complete command:
 �[32m*�[0m javac -source 1.8 -target 1.8 -d target/test-classes -encoding iso-8859-1 -classpath target/test-classes:jakarta-mail.jar:/usr/share/junit-4/lib/junit.jar:/usr/share/hamcrest-core-1.3/lib/hamcrest-core.jar:/usr/share/jakarta-activation-2/lib/jakarta-activation.jar @test_sources.lst
javac -source 1.8 -target 1.8 -d target/test-classes -encoding iso-8859-1 -classpath target/test-classes:jakarta-mail.jar:/usr/share/junit-4/lib/junit.jar:/usr/share/hamcrest-core-1.3/lib/hamcrest-core.jar:/usr/share/jakarta-activation-2/lib/jakarta-activation.jar @test_sources.lst
warning: [options] bootstrap class path not set in conjunction with -source 8
warning: [options] source value 8 is obsolete and will be removed in a future release
warning: [options] target value 8 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
src/test/java/com/sun/mail/util/logging/SeverityComparatorTest.java:725: warning: [removal] ThreadDeath in java.lang has been deprecated and marked for removal
                testByThrownLenSeq(ThreadDeath.class, i, r);
                                   ^
src/test/java/com/sun/mail/util/logging/SeverityComparatorTest.java:1358: warning: [removal] ThreadDeath in java.lang has been deprecated and marked for removal
        return new ThreadDeath().initCause(last);
                   ^
src/test/java/com/sun/mail/util/logging/SeverityComparatorTest.java:1438: warning: [removal] ThreadDeath in java.lang has been deprecated and marked for removal
    private static class SubOfTd extends ThreadDeath {
                                         ^
src/test/java/com/sun/mail/util/logging/MailHandlerTest.java:222: warning: [removal] getSecurityManager() in System has been deprecated and marked for removal
                    + ", sm=" + System.getSecurityManager());
                                      ^
src/test/java/com/sun/mail/util/logging/MailHandlerTest.java:230: warning: [removal] getSecurityManager() in System has been deprecated and marked for removal
        assertNull(System.getSecurityManager());
                         ^
src/test/java/com/sun/mail/util/logging/MailHandlerTest.java:244: warning: [removal] getSecurityManager() in System has been deprecated and marked for removal
        assertNull(System.getSecurityManager());
                         ^
src/test/java/com/sun/mail/util/logging/MailHandlerTest.java:254: warning: [removal] setSecurityManager(SecurityManager) in System has been deprecated and marked for removal
                    System.setSecurityManager(sm);
                          ^
src/test/java/com/sun/mail/util/logging/MailHandlerTest.java:277: warning: [removal] SecurityManager in java.lang has been deprecated and marked for removal
                System.setSecurityManager((SecurityManager) null);
                                           ^
src/test/java/com/sun/mail/util/logging/MailHandlerTest.java:277: warning: [removal] setSecurityManager(SecurityManager) in System has been deprecated and marked for removal
                System.setSecurityManager((SecurityManager) null);
                      ^
src/test/java/com/sun/mail/util/logging/MailHandlerTest.java:294: warning: [removal] getSecurityManager() in System has been deprecated and marked for removal
        assertNull(System.getSecurityManager());
                         ^
src/test/java/com/sun/mail/util/logging/MailHandlerTest.java:308: warning: [removal] getSecurityManager() in System has been deprecated and marked for removal
        assertNull(System.getSecurityManager());
                         ^
src/test/java/com/sun/mail/util/logging/MailHandlerTest.java:347: warning: [removal] setSecurityManager(SecurityManager) in System has been deprecated and marked for removal
                System.setSecurityManager(sm);
                      ^
src/test/java/com/sun/mail/util/logging/MailHandlerTest.java:360: warning: [removal] SecurityManager in java.lang has been deprecated and marked for removal
                System.setSecurityManager((SecurityManager) null);
                                           ^
src/test/java/com/sun/mail/util/logging/MailHandlerTest.java:360: warning: [removal] setSecurityManager(SecurityManager) in System has been deprecated and marked for removal
                System.setSecurityManager((SecurityManager) null);
                      ^
src/test/java/com/sun/mail/util/logging/MailHandlerTest.java:378: warning: [removal] getSecurityManager() in System has been deprecated and marked for removal
        assertNull(System.getSecurityManager());
                         ^
src/test/java/com/sun/mail/util/logging/MailHandlerTest.java:392: warning: [removal] getSecurityManager() in System has been deprecated and marked for removal
        assertNull(System.getSecurityManager());
                         ^
src/test/java/com/sun/mail/util/logging/MailHandlerTest.java:402: warning: [removal] setSecurityManager(SecurityManager) in System has been deprecated and marked for removal
                System.setSecurityManager(sm);
                      ^
src/test/java/com/sun/mail/util/logging/MailHandlerTest.java:422: warning: [removal] SecurityManager in java.lang has been deprecated and marked for removal
                System.setSecurityManager((SecurityManager) null);
                                           ^
src/test/java/com/sun/mail/util/logging/MailHandlerTest.java:422: warning: [removal] setSecurityManager(SecurityManager) in System has been deprecated and marked for removal
                System.setSecurityManager((SecurityManager) null);
                      ^
src/test/java/com/sun/mail/util/logging/MailHandlerTest.java:2270: warning: [removal] getSecurityManager() in System has been deprecated and marked for removal
        assertNull(System.getSecurityManager());
                         ^
src/test/java/com/sun/mail/util/logging/MailHandlerTest.java:2278: warning: [removal] getSecurityManager() in System has been deprecated and marked for removal
        assertNull(System.getSecurityManager());
                         ^
src/test/java/com/sun/mail/util/logging/MailHandlerTest.java:4802: warning: [removal] getSecurityManager() in System has been deprecated and marked for removal
        assertNull(System.getSecurityManager());
                         ^
src/test/java/com/sun/mail/util/logging/MailHandlerTest.java:4841: warning: [removal] setSecurityManager(SecurityManager) in System has been deprecated and marked for removal
        System.setSecurityManager(sm);
              ^
src/test/java/com/sun/mail/util/logging/MailHandlerTest.java:4875: warning: [removal] SecurityManager in java.lang has been deprecated and marked for removal
            System.setSecurityManager((SecurityManager) null);
                                       ^
src/test/java/com/sun/mail/util/logging/MailHandlerTest.java:4875: warning: [removal] setSecurityManager(SecurityManager) in System has been deprecated and marked for removal
            System.setSecurityManager((SecurityManager) null);
                  ^
src/test/java/com/sun/mail/util/logging/MailHandlerTest.java:4980: warning: [removal] getSecurityManager() in System has been deprecated and marked for removal
        assertNull(System.getSecurityManager());
                         ^
src/test/java/com/sun/mail/util/logging/MailHandlerTest.java:5010: warning: [removal] setSecurityManager(SecurityManager) in System has been deprecated and marked for removal
        System.setSecurityManager(manager);
              ^
src/test/java/com/sun/mail/util/logging/MailHandlerTest.java:5017: warning: [removal] getSecurityManager() in System has been deprecated and marked for removal
            assertEquals(manager, System.getSecurityManager());
                                        ^
src/test/java/com/sun/mail/util/logging/MailHandlerTest.java:5090: warning: [removal] SecurityManager in java.lang has been deprecated and marked for removal
            System.setSecurityManager((SecurityManager) null);
                                       ^
src/test/java/com/sun/mail/util/logging/MailHandlerTest.java:5090: warning: [removal] setSecurityManager(SecurityManager) in System has been deprecated and marked for removal
            System.setSecurityManager((SecurityManager) null);
                  ^
src/test/java/com/sun/mail/util/logging/MailHandlerTest.java:5107: warning: [removal] setSecurityManager(SecurityManager) in System has been deprecated and marked for removal
        System.setSecurityManager(manager);
              ^
src/test/java/com/sun/mail/util/logging/MailHandlerTest.java:5114: warning: [removal] getSecurityManager() in System has been deprecated and marked for removal
            assertEquals(manager, System.getSecurityManager());
                                        ^
src/test/java/com/sun/mail/util/logging/MailHandlerTest.java:5582: warning: [removal] SecurityManager in java.lang has been deprecated and marked for removal
            System.setSecurityManager((SecurityManager) null);
                                       ^
src/test/java/com/sun/mail/util/logging/MailHandlerTest.java:5582: warning: [removal] setSecurityManager(SecurityManager) in System has been deprecated and marked for removal
            System.setSecurityManager((SecurityManager) null);
                  ^
src/test/java/com/sun/mail/util/logging/MailHandlerTest.java:5683: warning: [removal] getSecurityManager() in System has been deprecated and marked for removal
        assertNull(System.getSecurityManager());
                         ^
src/test/java/com/sun/mail/util/logging/MailHandlerTest.java:5782: warning: [removal] getSecurityManager() in System has been deprecated and marked for removal
    	assertNull(System.getSecurityManager());
    	                 ^
src/test/java/com/sun/mail/util/logging/MailHandlerTest.java:7896: warning: [removal] SecurityManager in java.lang has been deprecated and marked for removal
    public static final class ThrowSecurityManager extends SecurityManager {
                                                           ^
src/test/java/com/sun/mail/util/logging/MailHandlerTest.java:7959: warning: [removal] SecurityManager in java.lang has been deprecated and marked for removal
    public static final class GaeSecurityManager extends SecurityManager {
                                                         ^
src/test/java/com/sun/mail/util/logging/MailHandlerTest.java:8719: warning: [removal] SecurityManager in java.lang has been deprecated and marked for removal
    private final static class ClassLoaderSecurityManager extends SecurityManager {
                                                                  ^
src/test/java/com/sun/mail/util/logging/LogManagerPropertiesTest.java:50: warning: [removal] getSecurityManager() in System has been deprecated and marked for removal
        Assert.assertNull(System.getSecurityManager());
                                ^
src/test/java/com/sun/mail/util/logging/LogManagerPropertiesTest.java:84: warning: [removal] checkAccess() in LogManager has been deprecated and marked for removal
        m.checkAccess();
         ^
src/test/java/com/sun/mail/util/logging/LogManagerPropertiesTest.java:89: warning: [removal] setSecurityManager(SecurityManager) in System has been deprecated and marked for removal
        System.setSecurityManager(sm);
              ^
src/test/java/com/sun/mail/util/logging/LogManagerPropertiesTest.java:93: warning: [removal] checkAccess() in LogManager has been deprecated and marked for removal
                m.checkAccess();
                 ^
src/test/java/com/sun/mail/util/logging/LogManagerPropertiesTest.java:105: warning: [removal] SecurityManager in java.lang has been deprecated and marked for removal
            System.setSecurityManager((SecurityManager) null);
                                       ^
src/test/java/com/sun/mail/util/logging/LogManagerPropertiesTest.java:105: warning: [removal] setSecurityManager(SecurityManager) in System has been deprecated and marked for removal
            System.setSecurityManager((SecurityManager) null);
                  ^
src/test/java/com/sun/mail/util/logging/LogManagerPropertiesTest.java:124: warning: [removal] setSecurityManager(SecurityManager) in System has been deprecated and marked for removal
                System.setSecurityManager(sm);
                      ^
src/test/java/com/sun/mail/util/logging/LogManagerPropertiesTest.java:134: warning: [removal] SecurityManager in java.lang has been deprecated and marked for removal
                    System.setSecurityManager((SecurityManager) null);
                                               ^
src/test/java/com/sun/mail/util/logging/LogManagerPropertiesTest.java:134: warning: [removal] setSecurityManager(SecurityManager) in System has been deprecated and marked for removal
                    System.setSecurityManager((SecurityManager) null);
                          ^
src/test/java/com/sun/mail/util/logging/LogManagerPropertiesTest.java:1011: warning: [removal] ThreadDeath in java.lang has been deprecated and marked for removal
            setPending(new ThreadDeath());
                           ^
src/test/java/com/sun/mail/util/logging/LogManagerPropertiesTest.java:1015: warning: [removal] ThreadDeath in java.lang has been deprecated and marked for removal
            } catch (ThreadDeath expect) {
                     ^
src/test/java/com/sun/mail/util/logging/LogManagerPropertiesTest.java:1038: warning: [removal] ThreadDeath in java.lang has been deprecated and marked for removal
            setPending(new ThreadDeath());
                           ^
src/test/java/com/sun/mail/util/logging/LogManagerPropertiesTest.java:1042: warning: [removal] ThreadDeath in java.lang has been deprecated and marked for removal
            } catch (ThreadDeath expect) {
                     ^
src/test/java/com/sun/mail/util/logging/LogManagerPropertiesTest.java:1065: warning: [removal] ThreadDeath in java.lang has been deprecated and marked for removal
            setPending(new ThreadDeath());
                           ^
src/test/java/com/sun/mail/util/logging/LogManagerPropertiesTest.java:1069: warning: [removal] ThreadDeath in java.lang has been deprecated and marked for removal
            } catch (ThreadDeath expect) {
                     ^
src/test/java/com/sun/mail/util/logging/LogManagerPropertiesTest.java:1092: warning: [removal] ThreadDeath in java.lang has been deprecated and marked for removal
            setPending(new ThreadDeath());
                           ^
src/test/java/com/sun/mail/util/logging/LogManagerPropertiesTest.java:1096: warning: [removal] ThreadDeath in java.lang has been deprecated and marked for removal
            } catch (ThreadDeath expect) {
                     ^
src/test/java/com/sun/mail/util/logging/LogManagerPropertiesTest.java:1119: warning: [removal] ThreadDeath in java.lang has been deprecated and marked for removal
            setPending(new ThreadDeath());
                           ^
src/test/java/com/sun/mail/util/logging/LogManagerPropertiesTest.java:1123: warning: [removal] ThreadDeath in java.lang has been deprecated and marked for removal
            } catch (ThreadDeath expect) {
                     ^
src/test/java/com/sun/mail/util/logging/LogManagerPropertiesTest.java:1348: warning: [removal] SecurityManager in java.lang has been deprecated and marked for removal
    private static final class LogPermSecurityManager extends SecurityManager {
                                                              ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
63 warnings
debug: ejunit4: entering function, parameters: -classpath target/test-classes:jakarta-mail.jar:/usr/share/junit-4/lib/junit.jar:/usr/share/hamcrest-core-1.3/lib/hamcrest-core.jar:/usr/share/jakarta-activation-2/lib/jakarta-activation.jar com.sun.mail.util.logging.SeverityComparatorTest com.sun.mail.util.logging.LogManagerPropertiesTest com.sun.mail.util.logging.DurationFilterTest com.sun.mail.util.logging.CompactFormatterTest com.sun.mail.util.logging.CollectorFormatterTest com.sun.mail.util.WriteTimeoutSocketTest com.sun.mail.util.UUDecoderStreamTest com.sun.mail.util.SocketFetcherTest com.sun.mail.util.QPEncoderStreamTest com.sun.mail.util.PropUtilTest com.sun.mail.util.MimeUtilTestSuite com.sun.mail.util.LineInputStreamTestSuite com.sun.mail.util.LineInputStreamTest com.sun.mail.util.BASE64Test com.sun.mail.smtp.SMTPWriteTimeoutTest com.sun.mail.smtp.SMTPUtf8Test com.sun.mail.smtp.SMTPSaslLoginTest com.sun.mail.smtp.SMTPIOExceptionTest com.sun.mail.smtp.SMTPConnectFailureTest com.sun.mail.smtp.SMTPCloseTest com.sun.mail.smtp.SMTPBdatTest com.sun.mail.smtp.SMTPAuthDebugTest com.sun.mail.pop3.POP3StoreTest com.sun.mail.pop3.POP3ReadableMimeTest com.sun.mail.pop3.POP3MessageTest com.sun.mail.pop3.POP3FolderClosedExceptionTest com.sun.mail.pop3.POP3AuthDebugTest com.sun.mail.imap.protocol.UIDSetTest com.sun.mail.imap.protocol.StratoImapBugfixTest com.sun.mail.imap.protocol.StatusTest com.sun.mail.imap.protocol.NamespacesTest com.sun.mail.imap.protocol.MODSEQTest com.sun.mail.imap.protocol.IMAPProtocolTest com.sun.mail.imap.protocol.EnvelopeTest com.sun.mail.imap.protocol.BODYSTRUCTURETest com.sun.mail.imap.MessageCacheTest com.sun.mail.imap.IMAPUidExpungeTest com.sun.mail.imap.IMAPStoreTest com.sun.mail.imap.IMAPSearchTest com.sun.mail.imap.IMAPSaslLoginTest com.sun.mail.imap.IMAPResponseEventTest com.sun.mail.imap.IMAPMessageTest com.sun.mail.imap.IMAPMessageNumberOutOfRangeTest com.sun.mail.imap.IMAPLoginReferralTest com.sun.mail.imap.IMAPLoginFailureTest com.sun.mail.imap.IMAPLoginCapabilitiesTest com.sun.mail.imap.IMAPIdleUntaggedResponseTest com.sun.mail.imap.IMAPIdleStateTest com.sun.mail.imap.IMAPIdleManagerTest com.sun.mail.imap.IMAPIDTest com.sun.mail.imap.IMAPFolderTest com.sun.mail.imap.IMAPFetchProfileTest com.sun.mail.imap.IMAPConnectFailureTest com.sun.mail.imap.IMAPCloseFailureTest com.sun.mail.imap.IMAPAuthDebugTest com.sun.mail.imap.IMAPAlertTest com.sun.mail.iap.ResponseTest com.sun.mail.iap.ResponseInputStreamTest com.sun.mail.iap.ProtocolTest com.sun.mail.handlers.TextXmlTest jakarta.mail.search.SearchTermSerializationTest jakarta.mail.internet.RestrictEncodingTest jakarta.mail.internet.ReferencesTest jakarta.mail.internet.ParameterListTestSuite jakarta.mail.internet.NonAsciiBoundaryTest jakarta.mail.internet.NewsAddressTest jakarta.mail.internet.ModifyMessageTest jakarta.mail.internet.MimeUtilityTest jakarta.mail.internet.MimeMultipartPropertyTest jakarta.mail.internet.MimeMultipartPreambleTest jakarta.mail.internet.MimeMultipartParseTest jakarta.mail.internet.MimeMultipartBCSIndexTest jakarta.mail.internet.MimeMessageTestSuite jakarta.mail.internet.MimeMessageTest jakarta.mail.internet.MimeBodyPartTestSuite jakarta.mail.internet.MimeBodyPartTest jakarta.mail.internet.MailDateFormatTest jakarta.mail.internet.InternetHeadersTest jakarta.mail.internet.InternetAddressTest jakarta.mail.internet.InternetAddressFoldTest jakarta.mail.internet.InternetAddressExtraTest jakarta.mail.internet.HeaderTokenizerTest jakarta.mail.internet.GetLocalAddressTest jakarta.mail.internet.FoldTest jakarta.mail.internet.ContentTypeTest jakarta.mail.internet.ContentDispositionTestSuite jakarta.mail.internet.AddFromTest jakarta.mail.internet.AddAddressHeaderTest jakarta.mail.URLNameTest
debug: ejunit_: entering function, parameters: junit-4 -classpath target/test-classes:jakarta-mail.jar:/usr/share/junit-4/lib/junit.jar:/usr/share/hamcrest-core-1.3/lib/hamcrest-core.jar:/usr/share/jakarta-activation-2/lib/jakarta-activation.jar com.sun.mail.util.logging.SeverityComparatorTest com.sun.mail.util.logging.LogManagerPropertiesTest com.sun.mail.util.logging.DurationFilterTest com.sun.mail.util.logging.CompactFormatterTest com.sun.mail.util.logging.CollectorFormatterTest com.sun.mail.util.WriteTimeoutSocketTest com.sun.mail.util.UUDecoderStreamTest com.sun.mail.util.SocketFetcherTest com.sun.mail.util.QPEncoderStreamTest com.sun.mail.util.PropUtilTest com.sun.mail.util.MimeUtilTestSuite com.sun.mail.util.LineInputStreamTestSuite com.sun.mail.util.LineInputStreamTest com.sun.mail.util.BASE64Test com.sun.mail.smtp.SMTPWriteTimeoutTest com.sun.mail.smtp.SMTPUtf8Test com.sun.mail.smtp.SMTPSaslLoginTest com.sun.mail.smtp.SMTPIOExceptionTest com.sun.mail.smtp.SMTPConnectFailureTest com.sun.mail.smtp.SMTPCloseTest com.sun.mail.smtp.SMTPBdatTest com.sun.mail.smtp.SMTPAuthDebugTest com.sun.mail.pop3.POP3StoreTest com.sun.mail.pop3.POP3ReadableMimeTest com.sun.mail.pop3.POP3MessageTest com.sun.mail.pop3.POP3FolderClosedExceptionTest com.sun.mail.pop3.POP3AuthDebugTest com.sun.mail.imap.protocol.UIDSetTest com.sun.mail.imap.protocol.StratoImapBugfixTest com.sun.mail.imap.protocol.StatusTest com.sun.mail.imap.protocol.NamespacesTest com.sun.mail.imap.protocol.MODSEQTest com.sun.mail.imap.protocol.IMAPProtocolTest com.sun.mail.imap.protocol.EnvelopeTest com.sun.mail.imap.protocol.BODYSTRUCTURETest com.sun.mail.imap.MessageCacheTest com.sun.mail.imap.IMAPUidExpungeTest com.sun.mail.imap.IMAPStoreTest com.sun.mail.imap.IMAPSearchTest com.sun.mail.imap.IMAPSaslLoginTest com.sun.mail.imap.IMAPResponseEventTest com.sun.mail.imap.IMAPMessageTest com.sun.mail.imap.IMAPMessageNumberOutOfRangeTest com.sun.mail.imap.IMAPLoginReferralTest com.sun.mail.imap.IMAPLoginFailureTest com.sun.mail.imap.IMAPLoginCapabilitiesTest com.sun.mail.imap.IMAPIdleUntaggedResponseTest com.sun.mail.imap.IMAPIdleStateTest com.sun.mail.imap.IMAPIdleManagerTest com.sun.mail.imap.IMAPIDTest com.sun.mail.imap.IMAPFolderTest com.sun.mail.imap.IMAPFetchProfileTest com.sun.mail.imap.IMAPConnectFailureTest com.sun.mail.imap.IMAPCloseFailureTest com.sun.mail.imap.IMAPAuthDebugTest com.sun.mail.imap.IMAPAlertTest com.sun.mail.iap.ResponseTest com.sun.mail.iap.ResponseInputStreamTest com.sun.mail.iap.ProtocolTest com.sun.mail.handlers.TextXmlTest jakarta.mail.search.SearchTermSerializationTest jakarta.mail.internet.RestrictEncodingTest jakarta.mail.internet.ReferencesTest jakarta.mail.internet.ParameterListTestSuite jakarta.mail.internet.NonAsciiBoundaryTest jakarta.mail.internet.NewsAddressTest jakarta.mail.internet.ModifyMessageTest jakarta.mail.internet.MimeUtilityTest jakarta.mail.internet.MimeMultipartPropertyTest jakarta.mail.internet.MimeMultipartPreambleTest jakarta.mail.internet.MimeMultipartParseTest jakarta.mail.internet.MimeMultipartBCSIndexTest jakarta.mail.internet.MimeMessageTestSuite jakarta.mail.internet.MimeMessageTest jakarta.mail.internet.MimeBodyPartTestSuite jakarta.mail.internet.MimeBodyPartTest jakarta.mail.internet.MailDateFormatTest jakarta.mail.internet.InternetHeadersTest jakarta.mail.internet.InternetAddressTest jakarta.mail.internet.InternetAddressFoldTest jakarta.mail.internet.InternetAddressExtraTest jakarta.mail.internet.HeaderTokenizerTest jakarta.mail.internet.GetLocalAddressTest jakarta.mail.internet.FoldTest jakarta.mail.internet.ContentTypeTest jakarta.mail.internet.ContentDispositionTestSuite jakarta.mail.internet.AddFromTest jakarta.mail.internet.AddAddressHeaderTest jakarta.mail.URLNameTest
debug: java-pkg_getjars: entering function, parameters: --with-dependencies junit-4,jakarta-activation-2
debug: junit-4,jakarta-activation-2:/usr/share/junit-4/lib/junit.jar:/usr/share/jakarta-activation-2/lib/jakarta-activation.jar:/usr/share/hamcrest-core-1.3/lib/hamcrest-core.jar
debug: java-pkg_ensure-dep: entering function, parameters: build junit-4
debug: Matching against: /junit(-4(-[^:]+)?:0|(-[^:]+)?:4)\b
debug: java-pkg_ensure-dep: entering function, parameters: build jakarta-activation-2
debug: Matching against: /jakarta-activation(-2(-[^:]+)?:0|(-[^:]+)?:2)\b
debug: java-pkg_record-jar_: entering function, parameters: --build-only junit-4
debug: java-pkg_record-jar_: entering function, parameters: --build-only jakarta-activation-2
debug: Calling: java -cp
debug: target/test-classes:jakarta-mail.jar:/usr/share/junit-4/lib/junit.jar:/usr/share/hamcrest-core-1.3/lib/hamcrest-core.jar:/usr/share/jakarta-activation-2/lib/jakarta-activation.jar:/usr/share/junit-4/lib/junit.jar:/usr/share/jakarta-activation-2/lib/jakarta-activation.jar:/usr/share/hamcrest-core-1.3/lib/hamcrest-core.jar
debug: -Djava.io.tmpdir=/var/tmp/portage/dev-java/jakarta-mail-2.0.1/temp
debug: -Djava.awt.headless=true
debug: -ea
debug: org.junit.runner.JUnitCore
debug: com.sun.mail.util.logging.SeverityComparatorTest
debug: com.sun.mail.util.logging.LogManagerPropertiesTest
debug: com.sun.mail.util.logging.DurationFilterTest
debug: com.sun.mail.util.logging.CompactFormatterTest
debug: com.sun.mail.util.logging.CollectorFormatterTest
debug: com.sun.mail.util.WriteTimeoutSocketTest
debug: com.sun.mail.util.UUDecoderStreamTest
debug: com.sun.mail.util.SocketFetcherTest
debug: com.sun.mail.util.QPEncoderStreamTest
debug: com.sun.mail.util.PropUtilTest
debug: com.sun.mail.util.MimeUtilTestSuite
debug: com.sun.mail.util.LineInputStreamTestSuite
debug: com.sun.mail.util.LineInputStreamTest
debug: com.sun.mail.util.BASE64Test
debug: com.sun.mail.smtp.SMTPWriteTimeoutTest
debug: com.sun.mail.smtp.SMTPUtf8Test
debug: com.sun.mail.smtp.SMTPSaslLoginTest
debug: com.sun.mail.smtp.SMTPIOExceptionTest
debug: com.sun.mail.smtp.SMTPConnectFailureTest
debug: com.sun.mail.smtp.SMTPCloseTest
debug: com.sun.mail.smtp.SMTPBdatTest
debug: com.sun.mail.smtp.SMTPAuthDebugTest
debug: com.sun.mail.pop3.POP3StoreTest
debug: com.sun.mail.pop3.POP3ReadableMimeTest
debug: com.sun.mail.pop3.POP3MessageTest
debug: com.sun.mail.pop3.POP3FolderClosedExceptionTest
debug: com.sun.mail.pop3.POP3AuthDebugTest
debug: com.sun.mail.imap.protocol.UIDSetTest
debug: com.sun.mail.imap.protocol.StratoImapBugfixTest
debug: com.sun.mail.imap.protocol.StatusTest
debug: com.sun.mail.imap.protocol.NamespacesTest
debug: com.sun.mail.imap.protocol.MODSEQTest
debug: com.sun.mail.imap.protocol.IMAPProtocolTest
debug: com.sun.mail.imap.protocol.EnvelopeTest
debug: com.sun.mail.imap.protocol.BODYSTRUCTURETest
debug: com.sun.mail.imap.MessageCacheTest
debug: com.sun.mail.imap.IMAPUidExpungeTest
debug: com.sun.mail.imap.IMAPStoreTest
debug: com.sun.mail.imap.IMAPSearchTest
debug: com.sun.mail.imap.IMAPSaslLoginTest
debug: com.sun.mail.imap.IMAPResponseEventTest
debug: com.sun.mail.imap.IMAPMessageTest
debug: com.sun.mail.imap.IMAPMessageNumberOutOfRangeTest
debug: com.sun.mail.imap.IMAPLoginReferralTest
debug: com.sun.mail.imap.IMAPLoginFailureTest
debug: com.sun.mail.imap.IMAPLoginCapabilitiesTest
debug: com.sun.mail.imap.IMAPIdleUntaggedResponseTest
debug: com.sun.mail.imap.IMAPIdleStateTest
debug: com.sun.mail.imap.IMAPIdleManagerTest
debug: com.sun.mail.imap.IMAPIDTest
debug: com.sun.mail.imap.IMAPFolderTest
debug: com.sun.mail.imap.IMAPFetchProfileTest
debug: com.sun.mail.imap.IMAPConnectFailureTest
debug: com.sun.mail.imap.IMAPCloseFailureTest
debug: com.sun.mail.imap.IMAPAuthDebugTest
debug: com.sun.mail.imap.IMAPAlertTest
debug: com.sun.mail.iap.ResponseTest
debug: com.sun.mail.iap.ResponseInputStreamTest
debug: com.sun.mail.iap.ProtocolTest
debug: com.sun.mail.handlers.TextXmlTest
debug: jakarta.mail.search.SearchTermSerializationTest
debug: jakarta.mail.internet.RestrictEncodingTest
debug: jakarta.mail.internet.ReferencesTest
debug: jakarta.mail.internet.ParameterListTestSuite
debug: jakarta.mail.internet.NonAsciiBoundaryTest
debug: jakarta.mail.internet.NewsAddressTest
debug: jakarta.mail.internet.ModifyMessageTest
debug: jakarta.mail.internet.MimeUtilityTest
debug: jakarta.mail.internet.MimeMultipartPropertyTest
debug: jakarta.mail.internet.MimeMultipartPreambleTest
debug: jakarta.mail.internet.MimeMultipartParseTest
debug: jakarta.mail.internet.MimeMultipartBCSIndexTest
debug: jakarta.mail.internet.MimeMessageTestSuite
debug: jakarta.mail.internet.MimeMessageTest
debug: jakarta.mail.internet.MimeBodyPartTestSuite
debug: jakarta.mail.internet.MimeBodyPartTest
debug: jakarta.mail.internet.MailDateFormatTest
debug: jakarta.mail.internet.InternetHeadersTest
debug: jakarta.mail.internet.InternetAddressTest
debug: jakarta.mail.internet.InternetAddressFoldTest
debug: jakarta.mail.internet.InternetAddressExtraTest
debug: jakarta.mail.internet.HeaderTokenizerTest
debug: jakarta.mail.internet.GetLocalAddressTest
debug: jakarta.mail.internet.FoldTest
debug: jakarta.mail.internet.ContentTypeTest
debug: jakarta.mail.internet.ContentDispositionTestSuite
debug: jakarta.mail.internet.AddFromTest
debug: jakarta.mail.internet.AddAddressHeaderTest
debug: jakarta.mail.URLNameTest
JUnit version 4.13.2-SNAPSHOT
..................................................................................E............................................................................................................................................................................................................................................................................................................................................................ContentTypeCleaner
...LineInputStreamUtf8
..LineInputStreamUtf8Fail
...............................................................................................................................................................................................................ParameterListTests
...WindowsFileNames
.AppleFileNames
.NonAsciiFileNames
..DecodeParameters
.ParametersNoStrict
.............................AllowEncodedMessages
.Utf8Address
.................NoEncodeFileName
.NoEncodeFileNameNoEncodeParameters
.EncodeFileName
.EncodeFileNameNoEncodeParameters
................................................................................................................................................................................................................................................................................................................................................................................................
Time: 40,688
There was 1 failure:
1) testCheckAccessPresent(com.sun.mail.util.logging.LogManagerPropertiesTest)
java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release
	at java.base/java.lang.System.setSecurityManager(System.java:429)
	at com.sun.mail.util.logging.LogManagerPropertiesTest.testCheckAccessPresent(LogManagerPropertiesTest.java:89)

FAILURES!!!
Tests run: 1084,  Failures: 1

 �[31;01m*�[0m ERROR: dev-java/jakarta-mail-2.0.1::gentoo failed (test phase):
 �[31;01m*�[0m   Running junit failed
 �[31;01m*�[0m 
 �[31;01m*�[0m Call stack:
 �[31;01m*�[0m     ebuild.sh, line  136:  Called src_test
 �[31;01m*�[0m   environment, line 2403:  Called java-pkg-simple_src_test
 �[31;01m*�[0m   environment, line  994:  Called ejunit4 '-classpath' 'target/test-classes:jakarta-mail.jar:/usr/share/junit-4/lib/junit.jar:/usr/share/hamcrest-core-1.3/lib/hamcrest-core.jar:/usr/share/jakarta-activation-2/lib/jakarta-activation.jar' 'com.sun.mail.util.logging.SeverityComparatorTest' 'com.sun.mail.util.logging.LogManagerPropertiesTest' 'com.sun.mail.util.logging.DurationFilterTest' 'com.sun.mail.util.logging.CompactFormatterTest' 'com.sun.mail.util.logging.CollectorFormatterTest' 'com.sun.mail.util.WriteTimeoutSocketTest' 'com.sun.mail.util.UUDecoderStreamTest' 'com.sun.mail.util.SocketFetcherTest' 'com.sun.mail.util.QPEncoderStreamTest' 'com.sun.mail.util.PropUtilTest' 'com.sun.mail.util.MimeUtilTestSuite' 'com.sun.mail.util.LineInputStreamTestSuite' 'com.sun.mail.util.LineInputStreamTest' 'com.sun.mail.util.BASE64Test' 'com.sun.mail.smtp.SMTPWriteTimeoutTest' 'com.sun.mail.smtp.SMTPUtf8Test' 'com.sun.mail.smtp.SMTPSaslLoginTest' 'com.sun.mail.smtp.SMTPIOExceptionTest' 'com.sun.mail.smtp.SMTPConnectFailureTest' 'com.sun.mail.smtp.SMTPCloseTest' 'com.sun.mail.smtp.SMTPBdatTest' 'com.sun.mail.smtp.SMTPAuthDebugTest' 'com.sun.mail.pop3.POP3StoreTest' 'com.sun.mail.pop3.POP3ReadableMimeTest' 'com.sun.mail.pop3.POP3MessageTest' 'com.sun.mail.pop3.POP3FolderClosedExceptionTest' 'com.sun.mail.pop3.POP3AuthDebugTest' 'com.sun.mail.imap.protocol.UIDSetTest' 'com.sun.mail.imap.protocol.StratoImapBugfixTest' 'com.sun.mail.imap.protocol.StatusTest' 'com.sun.mail.imap.protocol.NamespacesTest' 'com.sun.mail.imap.protocol.MODSEQTest' 'com.sun.mail.imap.protocol.IMAPProtocolTest' 'com.sun.mail.imap.protocol.EnvelopeTest' 'com.sun.mail.imap.protocol.BODYSTRUCTURETest' 'com.sun.mail.imap.MessageCacheTest' 'com.sun.mail.imap.IMAPUidExpungeTest' 'com.sun.mail.imap.IMAPStoreTest' 'com.sun.mail.imap.IMAPSearchTest' 'com.sun.mail.imap.IMAPSaslLoginTest' 'com.sun.mail.imap.IMAPResponseEventTest' 'com.sun.mail.imap.IMAPMessageTest' 'com.sun.mail.imap.IMAPMessageNumberOutOfRangeTest' 'com.sun.mail.imap.IMAPLoginReferralTest' 'com.sun.mail.imap.IMAPLoginFailureTest' 'com.sun.mail.imap.IMAPLoginCapabilitiesTest' 'com.sun.mail.imap.IMAPIdleUntaggedResponseTest' 'com.sun.mail.imap.IMAPIdleStateTest' 'com.sun.mail.imap.IMAPIdleManagerTest' 'com.sun.mail.imap.IMAPIDTest' 'com.sun.mail.imap.IMAPFolderTest' 'com.sun.mail.imap.IMAPFetchProfileTest' 'com.sun.mail.imap.IMAPConnectFailureTest' 'com.sun.mail.imap.IMAPCloseFailureTest' 'com.sun.mail.imap.IMAPAuthDebugTest' 'com.sun.mail.imap.IMAPAlertTest' 'com.sun.mail.iap.ResponseTest' 'com.sun.mail.iap.ResponseInputStreamTest' 'com.sun.mail.iap.ProtocolTest' 'com.sun.mail.handlers.TextXmlTest' 'jakarta.mail.search.SearchTermSerializationTest' 'jakarta.mail.internet.RestrictEncodingTest' 'jakarta.mail.internet.ReferencesTest' 'jakarta.mail.internet.ParameterListTestSuite' 'jakarta.mail.internet.NonAsciiBoundaryTest' 'jakarta.mail.internet.NewsAddressTest' 'jakarta.mail.internet.ModifyMessageTest' 'jakarta.mail.internet.MimeUtilityTest' 'jakarta.mail.internet.MimeMultipartPropertyTest' 'jakarta.mail.internet.MimeMultipartPreambleTest' 'jakarta.mail.internet.MimeMultipartParseTest' 'jakarta.mail.internet.MimeMultipartBCSIndexTest' 'jakarta.mail.internet.MimeMessageTestSuite' 'jakarta.mail.internet.MimeMessageTest' 'jakarta.mail.internet.MimeBodyPartTestSuite' 'jakarta.mail.internet.MimeBodyPartTest' 'jakarta.mail.internet.MailDateFormatTest' 'jakarta.mail.internet.InternetHeadersTest' 'jakarta.mail.internet.InternetAddressTest' 'jakarta.mail.internet.InternetAddressFoldTest' 'jakarta.mail.internet.InternetAddressExtraTest' 'jakarta.mail.internet.HeaderTokenizerTest' 'jakarta.mail.internet.GetLocalAddressTest' 'jakarta.mail.internet.FoldTest' 'jakarta.mail.internet.ContentTypeTest' 'jakarta.mail.internet.ContentDispositionTestSuite' 'jakarta.mail.internet.AddFromTest' 'jakarta.mail.internet.AddAddressHeaderTest' 'jakarta.mail.URLNameTest'
 �[31;01m*�[0m   environment, line  640:  Called ejunit_ 'junit-4' '-classpath' 'target/test-classes:jakarta-mail.jar:/usr/share/junit-4/lib/junit.jar:/usr/share/hamcrest-core-1.3/lib/hamcrest-core.jar:/usr/share/jakarta-activation-2/lib/jakarta-activation.jar' 'com.sun.mail.util.logging.SeverityComparatorTest' 'com.sun.mail.util.logging.LogManagerPropertiesTest' 'com.sun.mail.util.logging.DurationFilterTest' 'com.sun.mail.util.logging.CompactFormatterTest' 'com.sun.mail.util.logging.CollectorFormatterTest' 'com.sun.mail.util.WriteTimeoutSocketTest' 'com.sun.mail.util.UUDecoderStreamTest' 'com.sun.mail.util.SocketFetcherTest' 'com.sun.mail.util.QPEncoderStreamTest' 'com.sun.mail.util.PropUtilTest' 'com.sun.mail.util.MimeUtilTestSuite' 'com.sun.mail.util.LineInputStreamTestSuite' 'com.sun.mail.util.LineInputStreamTest' 'com.sun.mail.util.BASE64Test' 'com.sun.mail.smtp.SMTPWriteTimeoutTest' 'com.sun.mail.smtp.SMTPUtf8Test' 'com.sun.mail.smtp.SMTPSaslLoginTest' 'com.sun.mail.smtp.SMTPIOExceptionTest' 'com.sun.mail.smtp.SMTPConnectFailureTest' 'com.sun.mail.smtp.SMTPCloseTest' 'com.sun.mail.smtp.SMTPBdatTest' 'com.sun.mail.smtp.SMTPAuthDebugTest' 'com.sun.mail.pop3.POP3StoreTest' 'com.sun.mail.pop3.POP3ReadableMimeTest' 'com.sun.mail.pop3.POP3MessageTest' 'com.sun.mail.pop3.POP3FolderClosedExceptionTest' 'com.sun.mail.pop3.POP3AuthDebugTest' 'com.sun.mail.imap.protocol.UIDSetTest' 'com.sun.mail.imap.protocol.StratoImapBugfixTest' 'com.sun.mail.imap.protocol.StatusTest' 'com.sun.mail.imap.protocol.NamespacesTest' 'com.sun.mail.imap.protocol.MODSEQTest' 'com.sun.mail.imap.protocol.IMAPProtocolTest' 'com.sun.mail.imap.protocol.EnvelopeTest' 'com.sun.mail.imap.protocol.BODYSTRUCTURETest' 'com.sun.mail.imap.MessageCacheTest' 'com.sun.mail.imap.IMAPUidExpungeTest' 'com.sun.mail.imap.IMAPStoreTest' 'com.sun.mail.imap.IMAPSearchTest' 'com.sun.mail.imap.IMAPSaslLoginTest' 'com.sun.mail.imap.IMAPResponseEventTest' 'com.sun.mail.imap.IMAPMessageTest' 'com.sun.mail.imap.IMAPMessageNumberOutOfRangeTest' 'com.sun.mail.imap.IMAPLoginReferralTest' 'com.sun.mail.imap.IMAPLoginFailureTest' 'com.sun.mail.imap.IMAPLoginCapabilitiesTest' 'com.sun.mail.imap.IMAPIdleUntaggedResponseTest' 'com.sun.mail.imap.IMAPIdleStateTest' 'com.sun.mail.imap.IMAPIdleManagerTest' 'com.sun.mail.imap.IMAPIDTest' 'com.sun.mail.imap.IMAPFolderTest' 'com.sun.mail.imap.IMAPFetchProfileTest' 'com.sun.mail.imap.IMAPConnectFailureTest' 'com.sun.mail.imap.IMAPCloseFailureTest' 'com.sun.mail.imap.IMAPAuthDebugTest' 'com.sun.mail.imap.IMAPAlertTest' 'com.sun.mail.iap.ResponseTest' 'com.sun.mail.iap.ResponseInputStreamTest' 'com.sun.mail.iap.ProtocolTest' 'com.sun.mail.handlers.TextXmlTest' 'jakarta.mail.search.SearchTermSerializationTest' 'jakarta.mail.internet.RestrictEncodingTest' 'jakarta.mail.internet.ReferencesTest' 'jakarta.mail.internet.ParameterListTestSuite' 'jakarta.mail.internet.NonAsciiBoundaryTest' 'jakarta.mail.internet.NewsAddressTest' 'jakarta.mail.internet.ModifyMessageTest' 'jakarta.mail.internet.MimeUtilityTest' 'jakarta.mail.internet.MimeMultipartPropertyTest' 'jakarta.mail.internet.MimeMultipartPreambleTest' 'jakarta.mail.internet.MimeMultipartParseTest' 'jakarta.mail.internet.MimeMultipartBCSIndexTest' 'jakarta.mail.internet.MimeMessageTestSuite' 'jakarta.mail.internet.MimeMessageTest' 'jakarta.mail.internet.MimeBodyPartTestSuite' 'jakarta.mail.internet.MimeBodyPartTest' 'jakarta.mail.internet.MailDateFormatTest' 'jakarta.mail.internet.InternetHeadersTest' 'jakarta.mail.internet.InternetAddressTest' 'jakarta.mail.internet.InternetAddressFoldTest' 'jakarta.mail.internet.InternetAddressExtraTest' 'jakarta.mail.internet.HeaderTokenizerTest' 'jakarta.mail.internet.GetLocalAddressTest' 'jakarta.mail.internet.FoldTest' 'jakarta.mail.internet.ContentTypeTest' 'jakarta.mail.internet.ContentDispositionTestSuite' 'jakarta.mail.internet.AddFromTest' 'jakarta.mail.internet.AddAddressHeaderTest' 'jakarta.mail.URLNameTest'
 �[31;01m*�[0m   environment, line  667:  Called die
 �[31;01m*�[0m The specific snippet of code:
 �[31;01m*�[0m       java "${args[@]}" || die "Running junit failed"
 �[31;01m*�[0m 
 �[31;01m*�[0m If you need support, post the output of `emerge --info '=dev-java/jakarta-mail-2.0.1::gentoo'`,
 �[31;01m*�[0m the complete build log and the output of `emerge -pqv '=dev-java/jakarta-mail-2.0.1::gentoo'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=openjdk-21  CLASSPATH="" JAVA_HOME="/usr/lib64/openjdk-21"
JAVACFLAGS="-source 1.8 -target 1.8" COMPILER=""
and of course, the output of emerge --info =jakarta-mail-2.0.1
 �[31;01m*�[0m The complete build log is located at '/var/tmp/portage/dev-java/jakarta-mail-2.0.1/temp/build.log'.
 �[31;01m*�[0m The ebuild environment file is located at '/var/tmp/portage/dev-java/jakarta-mail-2.0.1/temp/environment'.
 �[31;01m*�[0m Working directory: '/var/tmp/portage/dev-java/jakarta-mail-2.0.1/work/mail-api-2.0.1/mail'
 �[31;01m*�[0m S: '/var/tmp/portage/dev-java/jakarta-mail-2.0.1/work/mail-api-2.0.1/mail'
@jmehrens jmehrens self-assigned this Nov 12, 2023
@jmehrens
Copy link
Contributor

There are already issues for the security manager in AngusMail under eclipse-ee4j/angus-mail#96. The finalizer removal will be done in another ticket.

@jmehrens jmehrens added the bug Something isn't working label Jan 22, 2024
jmehrens added a commit to jmehrens/mail that referenced this issue Jan 24, 2024
jmehrens added a commit to jmehrens/mail that referenced this issue Jan 24, 2024
jmehrens added a commit to jmehrens/mail that referenced this issue Jan 24, 2024
@jmehrens jmehrens linked a pull request Jan 24, 2024 that will close this issue
jmehrens added a commit to jmehrens/mail that referenced this issue Jan 25, 2024
lukasj pushed a commit that referenced this issue Jan 25, 2024
@jmehrens
Copy link
Contributor

Committed to v1.x as:
86ee859

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants