LUCENE-5207: try a hack around antlr hashmap bugs

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1523057 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2013-09-13 18:40:42 +00:00
parent d706f3b8d9
commit 675fb49bbd
2 changed files with 3 additions and 1 deletions

View File

@ -98,6 +98,8 @@
<property name="-grammar.relative.path" location="${grammar.path}" relative="true"/>
<replace-value property="grammar.relative.path" value="${-grammar.relative.path}${file.separator}" from="${file.separator}" to="/"/>
<java classname="org.antlr.Tool" fork="true" failonerror="true" classpathref="antlr.classpath" taskname="antlr">
<!-- this is a hack because antlr generates code comments in nondeterministic order (using hashmap somewhere it should use linkedhashmap) -->
<sysproperty key="jdk.map.althashing.threshold" value="-1"/>
<arg value="-verbose"/>
<arg value="-make"/>
<arg value="-o"/>

View File

@ -1569,7 +1569,7 @@ class JavascriptParser extends Parser {
stream_arguments.add(arguments48.getTree());
// AST REWRITE
// elements: ID, arguments
// elements: arguments, ID
// token labels:
// rule labels: retval
// token list labels: