From 436f1b6cb38c8fcfc8ec56548d2f7b976b2e4fcfb2be21a0ead82cce9a4c416d Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Thu, 7 Sep 2017 11:50:51 +0000 Subject: [PATCH] Fix build with java 9 OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-commons-httpclient?expand=0&rev=15 --- apache-commons-httpclient.changes | 6 ++++++ apache-commons-httpclient.spec | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/apache-commons-httpclient.changes b/apache-commons-httpclient.changes index 26bc3ba..c74381b 100644 --- a/apache-commons-httpclient.changes +++ b/apache-commons-httpclient.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Sep 7 11:49:25 UTC 2017 - fstrba@suse.com + +- Build with java source and target versions 1.6 + * fixes build with jdk9 + ------------------------------------------------------------------- Tue Jul 8 08:23:35 UTC 2014 - tchvatal@suse.com diff --git a/apache-commons-httpclient.spec b/apache-commons-httpclient.spec index 464278a..66931cc 100644 --- a/apache-commons-httpclient.spec +++ b/apache-commons-httpclient.spec @@ -1,7 +1,7 @@ # # spec file for package apache-commons-httpclient # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -125,7 +125,7 @@ sed -i 's/\r//' LICENSE.txt %build ant \ - -Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5 \ + -Dant.build.javac.source=1.6 -Dant.build.javac.target=1.6 \ -Dbuild.sysclasspath=first \ -Djavadoc.j2sdk.link=%{_javadocdir}/java \ -Djavadoc.logging.link=%{_javadocdir}/apache-commons-logging \