[antlr] 81/87: Fixed the build failure with Java 9 (Closes: #873971)

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Tue Oct 24 14:49:24 UTC 2017


This is an automated email from the git hooks/post-receive script.

ebourg-guest pushed a commit to branch master
in repository antlr.

commit ea8e83ee6eabc4c4fc44d0f9bc895096ffd09313
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Tue Oct 24 10:30:41 2017 +0200

    Fixed the build failure with Java 9 (Closes: #873971)
---
 debian/Makefile.debian | 2 +-
 debian/changelog       | 1 +
 debian/rules           | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/debian/Makefile.debian b/debian/Makefile.debian
index 06ba709..63d899d 100644
--- a/debian/Makefile.debian
+++ b/debian/Makefile.debian
@@ -9,7 +9,7 @@ build_antlr: compile makejar
 JAVA_FILES=`find antlr -name '*.java'`
 #compile the java files from scratch and make an executable with gcj
 compile:
-	$(JAVAC) -source 1.4 $(JAVA_FILES)
+	$(JAVAC) -source 1.7 $(JAVA_FILES)
 
 makejar:
 	$(JAR) cf antlr.jar `find . -name '*.class'`
diff --git a/debian/changelog b/debian/changelog
index 95e775d..67e749d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,6 @@
 antlr (2.7.7+dfsg-8) UNRELEASED; urgency=medium
 
+  * Fixed the build failure with Java 9 (Closes: #873971)
   * Moved the package to Git
   * Standards-Version updated to 4.1.1
   * Switch to debhelper level 10
diff --git a/debian/rules b/debian/rules
index d67a360..62f2287 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,7 +10,7 @@ configure: configure-stamp
 configure-stamp:
 	dh_testdir
 	cp /usr/share/misc/config.* scripts
-	JAVAC='/usr/lib/jvm/default-java/bin/javac -source 1.4' CLASSPATH=`pwd` JAVA=/usr/lib/jvm/default-java/bin/java \
+	JAVAC='/usr/lib/jvm/default-java/bin/javac -source 1.7' CLASSPATH=`pwd` JAVA=/usr/lib/jvm/default-java/bin/java \
 	./configure \
 		--prefix=/usr \
 		--mandir=\$${prefix}/share/man 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/antlr.git



More information about the pkg-java-commits mailing list