diff options
author | Leo Famulari <leo@famulari.name> | 2018-03-06 13:39:12 -0500 |
---|---|---|
committer | Leo Famulari <leo@famulari.name> | 2018-03-06 13:39:12 -0500 |
commit | 613ef763a52d7825f062eb7b58354504b64d2869 (patch) | |
tree | bee086914ed97aab1eaba25c325268e33e57c358 /gnu/packages/patches/antlr3-3_1-fix-java8-compilation.patch | |
parent | 86990eeda2a85acd3640059c0b681f1eddbacba0 (diff) | |
parent | 8a325748fb8c3709beb2c26966a3e3c86831f95e (diff) | |
download | guix-613ef763a52d7825f062eb7b58354504b64d2869.tar guix-613ef763a52d7825f062eb7b58354504b64d2869.tar.gz |
Merge branch 'master' into staging
Diffstat (limited to 'gnu/packages/patches/antlr3-3_1-fix-java8-compilation.patch')
-rw-r--r-- | gnu/packages/patches/antlr3-3_1-fix-java8-compilation.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/gnu/packages/patches/antlr3-3_1-fix-java8-compilation.patch b/gnu/packages/patches/antlr3-3_1-fix-java8-compilation.patch new file mode 100644 index 0000000000..0c4deb024b --- /dev/null +++ b/gnu/packages/patches/antlr3-3_1-fix-java8-compilation.patch @@ -0,0 +1,35 @@ +Based on the upstream fix for the java8 compilation issue. +Simplified patch. +Upstream version of patch does not work with this source tree. + +The issue is that in java8 it is an error to pass null to +removeAll. Results in null pointer exception. java7 +behaviour was to return the list unmodified. + +From db2a350c6d90efaa8dde949fa76005c2c5af45c4 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?G=C3=A1bor=20Boskovits?= <boskovits@gmail.com> +Date: Fri, 5 Jan 2018 17:05:31 +0100 +Subject: [PATCH] Fix java8 compilation. + +--- + src/org/antlr/tool/CompositeGrammar.java | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/src/org/antlr/tool/CompositeGrammar.java b/src/org/antlr/tool/CompositeGrammar.java +index f1408e7..7e02431 100644 +--- a/src/org/antlr/tool/CompositeGrammar.java ++++ b/src/org/antlr/tool/CompositeGrammar.java +@@ -218,7 +218,9 @@ public class CompositeGrammar { + public List<Grammar> getIndirectDelegates(Grammar g) { + List<Grammar> direct = getDirectDelegates(g); + List<Grammar> delegates = getDelegates(g); +- delegates.removeAll(direct); ++ if (direct != null) { ++ delegates.removeAll(direct); ++ } + return delegates; + } + +-- +2.15.1 + |