Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
OpenCMIS 0.5.0
-
None
Description
When running the parser and calling:
walker = QueryUtil.getWalker(statement);
walker.setDoFullTextParse(false);
walker.query(...);
There is an error in the parser:
message: Line 0:0 mismatched tree node: EOF expecting <UP> Caused by: Exception: org.antlr.runtime.MismatchedTreeNodeException. message: null at org.antlr.runtime.tree.TreeParser.recoverFromMismatchedToken(TreeParser.java:134) at org.antlr.runtime.BaseRecognizer.match(BaseRecognizer.java:115) at org.apache.chemistry.opencmis.server.support.query.CmisQueryWalker.where_clause(CmisQueryWalker.java:1638) at org.apache.chemistry.opencmis.server.support.query.CmisQueryWalker.query(CmisQueryWalker.java:276) at example.Example.buildQuery(Example.java:31) ... 34 more
This is due to incorrect tree rewriting done in the "no fulltext parse" mode.