You are viewing a plain text version of this content. The canonical link for it is here .
Posted to commits@lucenenet.apache.org by sy...@apache.org on 2016/09/11 21:31:17 UTC[46/50] [abbrv] lucenenet git commit: Fixed bug in
Classic.QueryParser caused by mistranslation from Java of break and
continue . Fixed bug in Classic.QueryParser caused by mistranslation from Java of break <label> and continue <label>.
Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/193c3489
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/193c3489
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/193c3489
Branch: refs/heads/master
Commit: 193c3489dea5daedaf7254668022c57813826c2a
Parents: bd78179
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Sat Sep 3 00:33:18 2016 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Sat Sep 3 00:33:18 2016 +0700
----------------------------------------------------------------------
src/Lucene.Net.QueryParser/Classic/QueryParser.cs | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/193c3489/src/Lucene.Net.QueryParser/Classic/QueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Classic/QueryParser.cs b/src/Lucene.Net.QueryParser/Classic/QueryParser.cs
index f52b4f7..d8f5ca9 100644
--- a/src/Lucene.Net.QueryParser/Classic/QueryParser.cs
+++ b/src/Lucene.Net.QueryParser/Classic/QueryParser.cs
@@ -794,13 +794,15 @@ namespace Lucene.Net.QueryParser.Classic
{
if (oldentry[i] != jj_expentry[i])
{
- continue;
+ goto jj_entries_loop_continue;
}
}
jj_expentries.Add(jj_expentry);
- break;
+ goto jj_entries_loop_break;
}
+ jj_entries_loop_continue: ;
}
+ jj_entries_loop_break:
if (pos != 0) jj_lasttokens[(jj_endpos = pos) - 1] = kind;
}
}