diff options
author | Volkmar W. Pogatzki <gentoo@pogatzki.net> | 2022-05-29 14:04:01 +0200 |
---|---|---|
committer | Florian Schmaus <flow@gentoo.org> | 2022-06-03 10:56:27 +0200 |
commit | 53e15a41acd0c5076a04e904d8eaed7b173b2cae (patch) | |
tree | 64f3968635c6db40f08b06b72aa0d6861e517712 /dev-java/easymock | |
parent | dev-java/byte-buddy: add 1.12.10 (diff) | |
download | gentoo-53e15a41acd0c5076a04e904d8eaed7b173b2cae.tar.gz gentoo-53e15a41acd0c5076a04e904d8eaed7b173b2cae.tar.bz2 gentoo-53e15a41acd0c5076a04e904d8eaed7b173b2cae.zip |
dev-java/easymock: fix tests with jdk-17
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/25674
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'dev-java/easymock')
-rw-r--r-- | dev-java/easymock/easymock-3.3.1-r1.ebuild | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/dev-java/easymock/easymock-3.3.1-r1.ebuild b/dev-java/easymock/easymock-3.3.1-r1.ebuild index 26eb0db0b3c8..8a7db3b2235f 100644 --- a/dev-java/easymock/easymock-3.3.1-r1.ebuild +++ b/dev-java/easymock/easymock-3.3.1-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -58,3 +58,14 @@ src_prepare() { # cannot find symbol o = ProxyBuilder.forClass(ArrayList.class) rm easymock/src/test/java/org/easymock/tests2/ClassExtensionHelperTest.java || die } + +src_test() { + # ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws + # java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @66da75e4 + local vm_version="$(java-config -g PROVIDES_VERSION)" + if ver_test "${vm_version}" -ge 17; then + JAVA_TEST_EXTRA_ARGS+=( --add-opens=java.base/java.lang=ALL-UNNAMED ) + JAVA_TEST_EXTRA_ARGS+=( --add-opens=java.base/java.io=ALL-UNNAMED ) + fi + java-pkg-simple_src_test +} |