[
https://issues.apache.org/jira/browse/CASSANDRA-46?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12695146#action_12695146
]
Per Mellqvist commented on CASSANDRA-46:
----------------------------------------
Solution tested locally (upgrade antlr)
- Put antlr-3.1.3 in lib/
http://www.antlr.org/download/antlr-3.1.3.jar
- Remove all other antlr-jars and stringtemplate-3.0.jar from lib/
- Update build xml with correct classpaths and new argument for output dir
<java classname="org.antlr.Tool"
classpath="${build.lib}/antlr-3.1.3.jar"
fork="true">
<arg value="${build.src}/org/apache/cassandra/cli/Cli.g" />
<arg value="-o" />
<arg value="${build.src}/org/apache/cassandra/cli/" />
</java>
<java classname="org.antlr.Tool"
classpath="${build.lib}/antlr-3.1.3.jar"
fork="true">
<arg
value="${build.src}/org/apache/cassandra/cql/compiler/parse/Cql.g" />
<arg value="-o" />
<arg value="${build.src}/org/apache/cassandra/cql/compiler/parse/" />
</java>
- Change src/org/apache/cassandra/cql/compiler/common/CqlCompiler.java so that
signature of recoverFromMismatchedSet method returns Object
public Object recoverFromMismatchedSet(IntStream input,
RecognitionException re,
BitSet follow) throws
RecognitionException
{
throw re;
}
> upgrade to antlr 3
> ------------------
>
> Key: CASSANDRA-46
> URL: https://issues.apache.org/jira/browse/CASSANDRA-46
> Project: Cassandra
> Issue Type: Bug
> Reporter: Jonathan Ellis
> Priority: Minor
>
> Currently we require both antlr 3 and antlr 2 to build. This seems broken.
> (Also, a newer version of antlr is out, which might be useful. As of this
> writing the latest is 3.1.3.)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.