From 78b162fb0900c1400231c253793e508dc82b005b Mon Sep 17 00:00:00 2001 From: Marian Koncek Date: Tue, 20 Feb 2024 18:02:23 +0100 Subject: [PATCH] Port to OpenJDK 21 Resolves: RHEL-52711 --- httpcomponents-core.spec | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/httpcomponents-core.spec b/httpcomponents-core.spec index a462b4c..d909041 100644 --- a/httpcomponents-core.spec +++ b/httpcomponents-core.spec @@ -86,6 +86,10 @@ done # several other packages expect to find the JARs there %mvn_file ":{*}" httpcomponents/@1 +# tests fail with OpenJDK 21 due to mocking of sealed classes +sed -i '/testRequestTargetHostFallback()/i@org.junit.Ignore' httpcore/src/test/java/org/apache/http/protocol/TestStandardInterceptors.java +rm httpcore-nio/src/test/java/org/apache/http/impl/nio/TestContentChannel.java + %build %mvn_build -- -Dmaven.compiler.release=8 @@ -97,6 +101,10 @@ done %doc README.txt RELEASE_NOTES.txt %changelog +* Mon Aug 05 2024 Mikolaj Izdebski - 4.4.16-8 +- Port to OpenJDK 21 +- Resolves: RHEL-52711 + * Thu Aug 01 2024 Troy Dawson - 4.4.16-8 - Bump release for Aug 2024 java mass rebuild