[antlr3] 16/17: Patched the org.antlr.runtime.Token class to preserve the EOF_TOKEN field

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Wed Jul 22 16:58:52 UTC 2015


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

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

commit 6452deb9d3efb4c8d6db765f23ad9c1d3ab770fd
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Wed Jul 22 17:29:23 2015 +0200

    Patched the org.antlr.runtime.Token class to preserve the EOF_TOKEN field
---
 debian/changelog                               |  1 +
 debian/patches/04-backward-compatibility.patch | 13 +++++++++++++
 debian/patches/series                          |  1 +
 3 files changed, 15 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index db765c3..398e053 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,7 @@ antlr3 (3.5.2-1) UNRELEASED; urgency=medium
     - Refreshed debian/generated-sources
     - Updated the man page
     - Backported two fixes for the C template
+    - Patched the org.antlr.runtime.Token class to preserve the EOF_TOKEN field
   * debian/rules:
     - Changed the bnd command to work with any upstream version
     - Remove the antlr3 artifacts from debian/maven-repo before invoking Maven
diff --git a/debian/patches/04-backward-compatibility.patch b/debian/patches/04-backward-compatibility.patch
new file mode 100644
index 0000000..2602ca6
--- /dev/null
+++ b/debian/patches/04-backward-compatibility.patch
@@ -0,0 +1,13 @@
+Description: Keep the Token.EOF_TOKEN field to preserve the backward compatibility
+Author: Emmanuel Bourg <ebourg at apache.org>
+Forwarded: no
+--- a/runtime/Java/src/main/java/org/antlr/runtime/Token.java
++++ b/runtime/Java/src/main/java/org/antlr/runtime/Token.java
+@@ -38,6 +38,7 @@
+ 	public static final int MIN_TOKEN_TYPE = UP+1;
+ 
+     public static final int EOF = CharStream.EOF;
++    public static final Token EOF_TOKEN = new CommonToken(EOF);
+ 
+ 	public static final int INVALID_TOKEN_TYPE = 0;
+ 	public static final Token INVALID_TOKEN = new CommonToken(INVALID_TOKEN_TYPE);
diff --git a/debian/patches/series b/debian/patches/series
index 215f469..74d4fd6 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 01-ignore-antlr-plugin.patch
 02-increase-default-conversion-timeout.patch
 03-fix-c-template.patch
+04-backward-compatibility.patch

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



More information about the pkg-java-commits mailing list