Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 853151 - dev-java/jakarta-mail-api-2.1.1: skips one test because of unresolved test failures
Summary: dev-java/jakarta-mail-api-2.1.1: skips one test because of unresolved test fa...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Java team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: 784263 module-info Java-test-failures
  Show dependency tree
 
Reported: 2022-06-20 09:30 UTC by Volkmar W. Pogatzki
Modified: 2024-05-08 09:05 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Volkmar W. Pogatzki 2022-06-20 09:30:04 UTC
# Probably caused by --module-path missing @${test_sources}

# warning: [options] system modules path not set in conjunction with -source 9
# src/test/java/module-info.java:24: error: package is empty or does not exist: jakarta.mail.event
#     exports jakarta.mail.event;
#                         ^
# src/test/java/module-info.java:29: error: cannot find symbol
#     uses jakarta.mail.Provider;
#                      ^
#   symbol:   class Provider
#   location: package jakarta.mail
# src/test/java/module-info.java:30: error: cannot find symbol
#     uses jakarta.mail.util.StreamProvider;
#                           ^
#   symbol:   class StreamProvider
#   location: package jakarta.mail.util
# src/test/java/module-info.java:32: error: cannot find symbol
#     provides jakarta.mail.util.StreamProvider with jakarta.mail.util.DummyStreamProvider;
#                               ^
#   symbol:   class StreamProvider
#   location: package jakarta.mail.util
# 4 errors
RESTRICT="test"
Comment 1 Volkmar W. Pogatzki 2023-03-28 07:05:16 UTC
v2.1.1 has tests enabled.
Comment 2 Volkmar W. Pogatzki 2023-04-07 06:44:42 UTC
src_test() {
	rm src/test/java/module-info.java || die

	# There was 1 failure:
	# 1) doesNotExist(jakarta.mail.util.FactoryFinderTest)
	# java.lang.NullPointerException
	#         at jakarta.mail.util.FactoryFinderTest.doesNotExist(FactoryFinderTest.java:55)
	sed \
		-e '/import org.junit.Test/a import org.junit.Ignore;' \
		-e '/doesNotExist/i @Ignore' \
		-i src/test/java/jakarta/mail/util/FactoryFinderTest.java || die
Comment 3 Larry the Git Cow gentoo-dev 2024-04-07 08:19:36 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d1b0ef975e833cc2f8458f8a3ae662865375f0c

commit 5d1b0ef975e833cc2f8458f8a3ae662865375f0c
Author:     Volkmar W. Pogatzki <gentoo@pogatzki.net>
AuthorDate: 2024-04-06 07:16:34 +0000
Commit:     Miroslav Šulc <fordfrog@gentoo.org>
CommitDate: 2024-04-07 08:19:32 +0000

    dev-java/jakarta-mail-api: add 2.1.3
    
    Bug: https://bugs.gentoo.org/853151
    Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
    Closes: https://github.com/gentoo/gentoo/pull/36132
    Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>

 dev-java/jakarta-mail-api/Manifest                 |  1 +
 .../jakarta-mail-api/jakarta-mail-api-2.1.3.ebuild | 64 ++++++++++++++++++++++
 2 files changed, 65 insertions(+)
Comment 4 Larry the Git Cow gentoo-dev 2024-05-08 09:05:29 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=706733118174c5e6315e1bf3469d5e0dfd54a9b1

commit 706733118174c5e6315e1bf3469d5e0dfd54a9b1
Author:     Volkmar W. Pogatzki <gentoo@pogatzki.net>
AuthorDate: 2024-05-07 10:40:57 +0000
Commit:     Miroslav Šulc <fordfrog@gentoo.org>
CommitDate: 2024-05-08 09:03:21 +0000

    dev-java/jakarta-mail-api: drop 2.1.1
    
    Closes: https://bugs.gentoo.org/853151
    Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
    Closes: https://github.com/gentoo/gentoo/pull/36593
    Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>

 dev-java/jakarta-mail-api/Manifest                 |  1 -
 .../jakarta-mail-api/jakarta-mail-api-2.1.1.ebuild | 68 ----------------------
 2 files changed, 69 deletions(-)