Fix build with Java 17

By backporting c9aebb34c9

Resolves: RHEL-183535
This commit is contained in:
Tomas Popela 2026-06-29 14:03:04 +02:00
parent fadd83ac1a
commit d111b40ded
2 changed files with 8 additions and 4 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"
@ -16,7 +16,7 @@
<javadoc destdir="${javadoc.dir}/docs/api"
access="public"
- source="1.5"
+ source="1.6"
+ source="1.8"
use="true"
notree="false"
nonavbar="false"

View File

@ -1,6 +1,6 @@
Name: libserializer
Version: 1.1.2
Release: 30%{?dist}
Release: 31%{?dist}
Summary: JFreeReport General Serialization Framework
License: LGPLv2+
#Original source: http://downloads.sourceforge.net/jfreereport/libserializer-%%{version}.zip
@ -57,6 +57,10 @@ cp -rp bin/javadoc/docs/api $RPM_BUILD_ROOT%{_javadocdir}/%{name}
%{_javadocdir}/%{name}
%changelog
* Mon Jun 29 2026 Tomas Popela <tpopela@redhat.com> - 1.1.2-31
- Fix build with Java 17
- Resolves: RHEL-183535
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.1.2-30
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688