Skip to content

Commit

Permalink
Bump antlr4 from 4.11.1 to 4.13.1 (#12445)
Browse files Browse the repository at this point in the history
Signed-off-by: Andriy Redko <[email protected]>
(cherry picked from commit 24d7098)
  • Loading branch information
reta committed Feb 26, 2024
1 parent 2399dce commit 38a3f37
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 31 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Bump `opentelemetry` from 1.34.1 to 1.35.0 ([#12388](https://github.com/opensearch-project/OpenSearch/pull/12388))
- Bump Apache Lucene from 9.9.2 to 9.10.0 ([#12392](https://github.com/opensearch-project/OpenSearch/pull/12392))
- Bump `org.apache.logging.log4j:log4j-core` from 2.22.1 to 2.23.0 ([#12464](https://github.com/opensearch-project/OpenSearch/pull/12464))
- Bump `antlr4` from 4.11.1 to 4.13.1 ([#12445](https://github.com/opensearch-project/OpenSearch/pull/12445))

### Changed
- Allow composite aggregation to run under a parent filter aggregation ([#11499](https://github.com/opensearch-project/OpenSearch/pull/11499))
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/version.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ asm = 9.6
jettison = 1.5.4
woodstox = 6.4.0
kotlin = 1.7.10
antlr4 = 4.11.1
antlr4 = 4.13.1
guava = 32.1.1-jre
protobuf = 3.22.3
jakarta_annotation = 1.3.5
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
17125bae1d965624e265ef49552f6465a2bfa307

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
17125bae1d965624e265ef49552f6465a2bfa307
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@
import org.antlr.v4.runtime.atn.PredictionContextCache;
import org.antlr.v4.runtime.dfa.DFA;

@SuppressWarnings({ "all", "warnings", "unchecked", "unused", "cast", "CheckReturnValue" })
@SuppressWarnings({ "all", "warnings", "unchecked", "unused", "cast", "CheckReturnValue", "this-escape" })
abstract class PainlessLexer extends Lexer {
static {
RuntimeMetaData.checkVersion("4.11.1", RuntimeMetaData.VERSION);
RuntimeMetaData.checkVersion("4.13.1", RuntimeMetaData.VERSION);
}

protected static final DFA[] _decisionToDFA;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
@SuppressWarnings({ "all", "warnings", "unchecked", "unused", "cast", "CheckReturnValue" })
class PainlessParser extends Parser {
static {
RuntimeMetaData.checkVersion("4.11.1", RuntimeMetaData.VERSION);
RuntimeMetaData.checkVersion("4.13.1", RuntimeMetaData.VERSION);
}

protected static final DFA[] _decisionToDFA;
Expand Down Expand Up @@ -337,7 +337,7 @@ public Vocabulary getVocabulary() {

@Override
public String getGrammarFileName() {
return "java-escape";
return "PainlessParser.g4";

Check warning on line 340 in modules/lang-painless/src/main/java/org/opensearch/painless/antlr/PainlessParser.java

View check run for this annotation

Codecov / codecov/patch

modules/lang-painless/src/main/java/org/opensearch/painless/antlr/PainlessParser.java#L340

Added line #L340 was not covered by tests
}

@Override
Expand Down Expand Up @@ -425,8 +425,8 @@ public final SourceContext source() throws RecognitionException {
setState(87);
_errHandler.sync(this);
_la = _input.LA(1);
while (((_la) & ~0x3f) == 0 && ((1L << _la) & 864691155080519840L) != 0
|| (((_la - 72)) & ~0x3f) == 0 && ((1L << (_la - 72)) & 4095L) != 0) {
while ((((_la) & ~0x3f) == 0 && ((1L << _la) & 864691155080519840L) != 0)
|| ((((_la - 72)) & ~0x3f) == 0 && ((1L << (_la - 72)) & 4095L) != 0)) {
{
{
setState(84);
Expand Down Expand Up @@ -571,7 +571,7 @@ public final ParametersContext parameters() throws RecognitionException {
setState(109);
_errHandler.sync(this);
_la = _input.LA(1);
if ((((_la - 81)) & ~0x3f) == 0 && ((1L << (_la - 81)) & 7L) != 0) {
if (((((_la - 81)) & ~0x3f) == 0 && ((1L << (_la - 81)) & 7L) != 0)) {
{
setState(98);
decltype();
Expand Down Expand Up @@ -1088,8 +1088,8 @@ public final RstatementContext rstatement() throws RecognitionException {
setState(140);
_errHandler.sync(this);
_la = _input.LA(1);
if (((_la) & ~0x3f) == 0 && ((1L << _la) & 864691155034439840L) != 0
|| (((_la - 72)) & ~0x3f) == 0 && ((1L << (_la - 72)) & 4095L) != 0) {
if ((((_la) & ~0x3f) == 0 && ((1L << _la) & 864691155034439840L) != 0)
|| ((((_la - 72)) & ~0x3f) == 0 && ((1L << (_la - 72)) & 4095L) != 0)) {
{
setState(139);
initializer();
Expand All @@ -1101,8 +1101,8 @@ public final RstatementContext rstatement() throws RecognitionException {
setState(144);
_errHandler.sync(this);
_la = _input.LA(1);
if (((_la) & ~0x3f) == 0 && ((1L << _la) & 864691155034439840L) != 0
|| (((_la - 72)) & ~0x3f) == 0 && ((1L << (_la - 72)) & 2559L) != 0) {
if ((((_la) & ~0x3f) == 0 && ((1L << _la) & 864691155034439840L) != 0)
|| ((((_la - 72)) & ~0x3f) == 0 && ((1L << (_la - 72)) & 2559L) != 0)) {
{
setState(143);
expression();
Expand All @@ -1114,8 +1114,8 @@ public final RstatementContext rstatement() throws RecognitionException {
setState(148);
_errHandler.sync(this);
_la = _input.LA(1);
if (((_la) & ~0x3f) == 0 && ((1L << _la) & 864691155034439840L) != 0
|| (((_la - 72)) & ~0x3f) == 0 && ((1L << (_la - 72)) & 2559L) != 0) {
if ((((_la) & ~0x3f) == 0 && ((1L << _la) & 864691155034439840L) != 0)
|| ((((_la - 72)) & ~0x3f) == 0 && ((1L << (_la - 72)) & 2559L) != 0)) {
{
setState(147);
afterthought();
Expand Down Expand Up @@ -1470,8 +1470,8 @@ public final DstatementContext dstatement() throws RecognitionException {
setState(193);
_errHandler.sync(this);
_la = _input.LA(1);
if (((_la) & ~0x3f) == 0 && ((1L << _la) & 864691155034439840L) != 0
|| (((_la - 72)) & ~0x3f) == 0 && ((1L << (_la - 72)) & 2559L) != 0) {
if ((((_la) & ~0x3f) == 0 && ((1L << _la) & 864691155034439840L) != 0)
|| ((((_la - 72)) & ~0x3f) == 0 && ((1L << (_la - 72)) & 2559L) != 0)) {
{
setState(192);
expression();
Expand Down Expand Up @@ -1661,8 +1661,8 @@ public final BlockContext block() throws RecognitionException {
setState(212);
_errHandler.sync(this);
_la = _input.LA(1);
if (((_la) & ~0x3f) == 0 && ((1L << _la) & 864691155071795360L) != 0
|| (((_la - 72)) & ~0x3f) == 0 && ((1L << (_la - 72)) & 4095L) != 0) {
if ((((_la) & ~0x3f) == 0 && ((1L << _la) & 864691155071795360L) != 0)
|| ((((_la - 72)) & ~0x3f) == 0 && ((1L << (_la - 72)) & 4095L) != 0)) {
{
setState(211);
dstatement();
Expand Down Expand Up @@ -2491,7 +2491,7 @@ private NoncondexpressionContext noncondexpression(int _p) throws RecognitionExc
if (!(precpred(_ctx, 13))) throw new FailedPredicateException(this, "precpred(_ctx, 13)");
setState(269);
_la = _input.LA(1);
if (!(((_la) & ~0x3f) == 0 && ((1L << _la) & 7516192768L) != 0)) {
if (!((((_la) & ~0x3f) == 0 && ((1L << _la) & 7516192768L) != 0))) {
_errHandler.recoverInline(this);
} else {
if (_input.LA(1) == Token.EOF) matchedEOF = true;
Expand Down Expand Up @@ -2545,7 +2545,7 @@ private NoncondexpressionContext noncondexpression(int _p) throws RecognitionExc
if (!(precpred(_ctx, 10))) throw new FailedPredicateException(this, "precpred(_ctx, 10)");
setState(278);
_la = _input.LA(1);
if (!(((_la) & ~0x3f) == 0 && ((1L << _la) & 240518168576L) != 0)) {
if (!((((_la) & ~0x3f) == 0 && ((1L << _la) & 240518168576L) != 0))) {
_errHandler.recoverInline(this);
} else {
if (_input.LA(1) == Token.EOF) matchedEOF = true;
Expand All @@ -2563,7 +2563,7 @@ private NoncondexpressionContext noncondexpression(int _p) throws RecognitionExc
if (!(precpred(_ctx, 9))) throw new FailedPredicateException(this, "precpred(_ctx, 9)");
setState(281);
_la = _input.LA(1);
if (!(((_la) & ~0x3f) == 0 && ((1L << _la) & 4123168604160L) != 0)) {
if (!((((_la) & ~0x3f) == 0 && ((1L << _la) & 4123168604160L) != 0))) {
_errHandler.recoverInline(this);
} else {
if (_input.LA(1) == Token.EOF) matchedEOF = true;
Expand All @@ -2581,7 +2581,7 @@ private NoncondexpressionContext noncondexpression(int _p) throws RecognitionExc
if (!(precpred(_ctx, 7))) throw new FailedPredicateException(this, "precpred(_ctx, 7)");
setState(284);
_la = _input.LA(1);
if (!(((_la) & ~0x3f) == 0 && ((1L << _la) & 65970697666560L) != 0)) {
if (!((((_la) & ~0x3f) == 0 && ((1L << _la) & 65970697666560L) != 0))) {
_errHandler.recoverInline(this);
} else {
if (_input.LA(1) == Token.EOF) matchedEOF = true;
Expand Down Expand Up @@ -2861,7 +2861,7 @@ public final ExpressionContext expression() throws RecognitionException {
noncondexpression(0);
setState(320);
_la = _input.LA(1);
if (!((((_la - 60)) & ~0x3f) == 0 && ((1L << (_la - 60)) & 4095L) != 0)) {
if (!(((((_la - 60)) & ~0x3f) == 0 && ((1L << (_la - 60)) & 4095L) != 0))) {
_errHandler.recoverInline(this);
} else {
if (_input.LA(1) == Token.EOF) matchedEOF = true;
Expand Down Expand Up @@ -3938,7 +3938,7 @@ public final PrimaryContext primary() throws RecognitionException {
enterOuterAlt(_localctx, 2); {
setState(400);
_la = _input.LA(1);
if (!((((_la - 72)) & ~0x3f) == 0 && ((1L << (_la - 72)) & 15L) != 0)) {
if (!(((((_la - 72)) & ~0x3f) == 0 && ((1L << (_la - 72)) & 15L) != 0))) {
_errHandler.recoverInline(this);
} else {
if (_input.LA(1) == Token.EOF) matchedEOF = true;
Expand Down Expand Up @@ -4564,8 +4564,8 @@ public final ArrayinitializerContext arrayinitializer() throws RecognitionExcept
setState(469);
_errHandler.sync(this);
_la = _input.LA(1);
if (((_la) & ~0x3f) == 0 && ((1L << _la) & 864691155034439840L) != 0
|| (((_la - 72)) & ~0x3f) == 0 && ((1L << (_la - 72)) & 2559L) != 0) {
if ((((_la) & ~0x3f) == 0 && ((1L << _la) & 864691155034439840L) != 0)
|| ((((_la - 72)) & ~0x3f) == 0 && ((1L << (_la - 72)) & 2559L) != 0)) {
{
setState(461);
expression();
Expand Down Expand Up @@ -4923,8 +4923,8 @@ public final ArgumentsContext arguments() throws RecognitionException {
setState(524);
_errHandler.sync(this);
_la = _input.LA(1);
if (((_la) & ~0x3f) == 0 && ((1L << _la) & 864691155101548704L) != 0
|| (((_la - 72)) & ~0x3f) == 0 && ((1L << (_la - 72)) & 4095L) != 0) {
if ((((_la) & ~0x3f) == 0 && ((1L << _la) & 864691155101548704L) != 0)
|| ((((_la - 72)) & ~0x3f) == 0 && ((1L << (_la - 72)) & 4095L) != 0)) {
{
setState(516);
argument();
Expand Down Expand Up @@ -5104,7 +5104,7 @@ public final LambdaContext lambda() throws RecognitionException {
setState(543);
_errHandler.sync(this);
_la = _input.LA(1);
if ((((_la - 81)) & ~0x3f) == 0 && ((1L << (_la - 81)) & 7L) != 0) {
if (((((_la - 81)) & ~0x3f) == 0 && ((1L << (_la - 81)) & 7L) != 0)) {
{
setState(535);
lamtype();
Expand Down

0 comments on commit 38a3f37

Please sign in to comment.