diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
commit | 0f558761aa2dee1017b4751e4017205e015a9560 (patch) | |
tree | 037df795519468a25d9362b4e95cdaeb84eb1cf9 /dev-java/easymock/easymock-3.3.1-r1.ebuild | |
parent | 752d6256e5204b958b0ef7905675a940b5e9172f (diff) |
gentoo resync : 29.12.2022
Diffstat (limited to 'dev-java/easymock/easymock-3.3.1-r1.ebuild')
-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 +} |