Nikolay Blindov created CXF-5299:
------------------------------------
Summary: FiqlParser fails to parse an expression with child
properties when SearchBean is used
Key: CXF-5299
URL: https://issues.apache.org/jira/browse/CXF-5299
Project: CXF
Issue Type: Bug
Components: JAX-RS
Affects Versions: 2.7.6
Reporter: Nikolay Blindov
I created a test below for that.
public class FiqlParserTest {
private FiqlParser<SearchBean> parser = new
FiqlParser<SearchBean>(SearchBean.class);
@Test
public void childPropertiesWithSearchBean() throws SearchParseException {
parser.parse("header.name==king");
}
}
I fixed it my project using copy of class FiqlParser with changes below.
I replaced code in method "private Object parseType(...)"
from
int index = setter.indexOf(".");
to
int index = -1;
if(!this.conditionClass.equals(SearchBean.class))
index = setter.indexOf(".");
It's work for me.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira