summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolkmar W. Pogatzki <gentoo@pogatzki.net>2021-11-14 11:25:45 +0100
committerMiroslav Šulc <fordfrog@gentoo.org>2021-11-16 12:38:29 +0100
commit9b09e62a3d7e12487bc9af0380e4bcf3b9c628b6 (patch)
treece021f1e783b13987df1d7921c3edf8d01b0ca2f /dev-java/pdfbox
parentdev-python/filelock: Bump to 3.4.0 (diff)
downloadgentoo-9b09e62a3d7e12487bc9af0380e4bcf3b9c628b6.tar.gz
gentoo-9b09e62a3d7e12487bc9af0380e4bcf3b9c628b6.tar.bz2
gentoo-9b09e62a3d7e12487bc9af0380e4bcf3b9c628b6.zip
dev-java/pdfbox: additional TEST_EXCLUDES for jdk-17
Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/21564 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java/pdfbox')
-rw-r--r--dev-java/pdfbox/pdfbox-2.0.24.ebuild11
1 files changed, 11 insertions, 0 deletions
diff --git a/dev-java/pdfbox/pdfbox-2.0.24.ebuild b/dev-java/pdfbox/pdfbox-2.0.24.ebuild
index cfaf146b4ae5..ea6072119ab0 100644
--- a/dev-java/pdfbox/pdfbox-2.0.24.ebuild
+++ b/dev-java/pdfbox/pdfbox-2.0.24.ebuild
@@ -196,6 +196,17 @@ src_test() {
JAVA_TEST_SRC_DIR="pdfbox/src/test/java"
JAVA_TEST_RESOURCE_DIRS="pdfbox/src/test/resources"
+ # There was 1 failure
+ # 1) testIsEmbeddingPermittedMultipleVersions(org.apache.pdfbox.pdmodel.font.TestFontEmbedding)
+ # java.lang.ExceptionInInitializerError
+ # Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.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 @4dc690f9
+ # FAILURES!!!
+ # Tests run: 586, Failures: 1
+ local vm_version="$(java-config -g PROVIDES_VERSION)"
+ if [[ "${vm_version}" == "17" ]] ; then
+ JAVA_TEST_EXCLUDES+=( "org.apache.pdfbox.pdmodel.font.TestFontEmbedding" )
+ fi
+
# tests failed with S="${WORKDIR}/${P}"
find pdfbox/src/test/ -type f -exec sed -i 's:src/test/resources:pdfbox/src/test/resources:' {} + || die