Set javac source/target to 1.8 for java-17-openjdk compatibility

Update the libxml-1.1.2-java11.patch to set javac source/target
from 1.6 to 1.8, enabling the package to build with
java-17-openjdk which no longer supports source/target 1.6.

Upstream patches:
 - 982a4b89e3.patch
Resolves: RHEL-183539

This commit was backported by Ymir, a Red Hat Enterprise Linux software maintenance AI agent.

Assisted-by: Ymir
This commit is contained in:
RHEL Packaging Agent 2026-06-30 21:02:13 +00:00
parent 77e5f0ebf2
commit 95dc6e12f8
2 changed files with 7 additions and 3 deletions

View File

@ -6,8 +6,8 @@
description="Indicates whether source should be compiled with deprecation information" />
- <property name="javac.source" value="1.5" description="Provide source compatibility with specified release" />
- <property name="javac.target" value="1.5" description="Generate class files for specific VM version" />
+ <property name="javac.source" value="1.6" description="Provide source compatibility with specified release" />
+ <property name="javac.target" value="1.6" description="Generate class files for specific VM version" />
+ <property name="javac.source" value="1.8" description="Provide source compatibility with specified release" />
+ <property name="javac.target" value="1.8" description="Generate class files for specific VM version" />
<!-- Build Cache properties -->
<property name="build.cache.dir"

View File

@ -2,7 +2,7 @@
Name: pentaho-libxml
Version: 1.1.3
Release: 30%{?dist}
Release: 31%{?dist}
Summary: Namespace aware SAX-Parser utility library
License: LGPLv2
#Original source: http://downloads.sourceforge.net/jfreereport/%%{origname}-%%{version}.zip
@ -63,6 +63,10 @@ cp -rp bin/javadoc/docs/api $RPM_BUILD_ROOT%{_javadocdir}/%{origname}
%{_javadocdir}/%{origname}
%changelog
* Tue Jun 30 2026 RHEL Packaging Agent <redhat-ymir-agent@redhat.com> - 1.1.3-31
- Set javac source/target to 1.8 for java-17-openjdk compatibility
- Resolves: RHEL-183539
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.1.3-30
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688