Blame SOURCES/0001-Port-to-current-javacc.patch

2fde85
From f171cd8a95735c7f2fbcd20c323b2d936d8cc01b Mon Sep 17 00:00:00 2001
2fde85
From: Michael Simacek <msimacek@redhat.com>
2fde85
Date: Wed, 7 Sep 2016 16:36:53 +0200
2fde85
Subject: [PATCH] Port to current javacc
2fde85
2fde85
---
2fde85
 src/main/java/org/apache/commons/jexl2/parser/SimpleNode.java  |  2 ++
2fde85
 .../java/org/apache/commons/jexl2/parser/TokenMgrError.java    | 10 ++++++++++
2fde85
 2 files changed, 12 insertions(+)
2fde85
2fde85
diff --git a/src/main/java/org/apache/commons/jexl2/parser/SimpleNode.java b/src/main/java/org/apache/commons/jexl2/parser/SimpleNode.java
2fde85
index cab2378..4d83b1d 100644
2fde85
--- a/src/main/java/org/apache/commons/jexl2/parser/SimpleNode.java
2fde85
+++ b/src/main/java/org/apache/commons/jexl2/parser/SimpleNode.java
2fde85
@@ -180,6 +180,8 @@ public class SimpleNode implements Node {
2fde85
             }
2fde85
         }
2fde85
     }
2fde85
+
2fde85
+    public int getId() { return id; }
2fde85
 }
2fde85
 
2fde85
 /* JavaCC - OriginalChecksum=7dff880883d088a37c1e3197e4b455a0 (do not edit this line) */
2fde85
diff --git a/src/main/java/org/apache/commons/jexl2/parser/TokenMgrError.java b/src/main/java/org/apache/commons/jexl2/parser/TokenMgrError.java
2fde85
index 1e9b623..3e1236e 100644
2fde85
--- a/src/main/java/org/apache/commons/jexl2/parser/TokenMgrError.java
2fde85
+++ b/src/main/java/org/apache/commons/jexl2/parser/TokenMgrError.java
2fde85
@@ -142,4 +142,14 @@ public class TokenMgrError extends Error {
2fde85
         current = curChar;
2fde85
         errorCode = reason;
2fde85
     }
2fde85
+
2fde85
+    public TokenMgrError(boolean EOFSeen, int lexState, int errorLine, int errorColumn, String errorAfter, int curChar, int reason) {
2fde85
+        eof = EOFSeen;
2fde85
+        state = lexState;
2fde85
+        line = errorLine;
2fde85
+        column = errorColumn;
2fde85
+        after = errorAfter;
2fde85
+        current = (char)curChar;
2fde85
+        errorCode = reason;
2fde85
+    }
2fde85
 }
2fde85
-- 
2fde85
2.7.4
2fde85