mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: antlr3-3.3: Fix java8 issue.
* gnu/packages/java.scm (antlr3-3.3)[source]: Add patch. * gnu/packages/patches/antlr3-3_3-fix-java8-compilation.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
This commit is contained in:
parent
4c763b4d67
commit
48c8622010
3 changed files with 39 additions and 1 deletions
35
gnu/packages/patches/antlr3-3_3-fix-java8-compilation.patch
Normal file
35
gnu/packages/patches/antlr3-3_3-fix-java8-compilation.patch
Normal file
|
@ -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 43867d50c05d1c06ab7220eb974a8874ae10c308 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?G=C3=A1bor=20Boskovits?= <boskovits@gmail.com>
|
||||
Date: Fri, 5 Jan 2018 19:08:24 +0100
|
||||
Subject: [PATCH] Fix java8 complilation error.
|
||||
|
||||
---
|
||||
tool/src/main/java/org/antlr/tool/CompositeGrammar.java | 4 +++-
|
||||
1 file changed, 3 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/tool/src/main/java/org/antlr/tool/CompositeGrammar.java b/tool/src/main/java/org/antlr/tool/CompositeGrammar.java
|
||||
index f34ea73..63740a6 100644
|
||||
--- a/tool/src/main/java/org/antlr/tool/CompositeGrammar.java
|
||||
+++ b/tool/src/main/java/org/antlr/tool/CompositeGrammar.java
|
||||
@@ -226,7 +226,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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue