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

Update libloader-1.1.2.java11.patch to set javac.source and
javac.target to 1.8 instead of 1.6, which is required for
compatibility with java-17-openjdk. The previous value of 1.6
is no longer supported as a source/target level by JDK 17.

Upstream patches:
 - 9131cdba38.patch
Resolves: RHEL-183614

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 12:21:32 +00:00
parent 07b3f4db75
commit cedc0888bc
2 changed files with 8 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

@ -1,6 +1,6 @@
Name: libloader
Version: 1.1.3
Release: 32%{?dist}
Release: 33%{?dist}
Summary: Resource Loading Framework
License: LGPLv2
#Original source: http://downloads.sourceforge.net/jfreereport/%%{name}-%%{version}.zip
@ -66,6 +66,11 @@ cp -rp bin/javadoc/docs/api $RPM_BUILD_ROOT%{_javadocdir}/%{name}
%{_javadocdir}/%{name}
%changelog
* Tue Jun 30 2026 RHEL Packaging Agent <redhat-ymir-agent@redhat.com> - 1.1.3-33
- Update javac source/target from 1.6 to 1.8 for java-17-openjdk
compatibility
- Resolves: RHEL-183614
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.1.3-32
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688