-
Bug
-
Resolution: Done
-
Major
-
8.0.0.Final
-
None
-
None
This query
Query q = qf.from(getModelFactory().getUserImplClass()) .select("name") .having("name").eq("John").toBuilder() .groupBy("name") .having("name").eq("John").toBuilder() .build();
fails with
java.lang.IllegalStateException: Sentence already started. Cannot use 'having(..)' again. at org.infinispan.query.dsl.impl.BaseQueryBuilder.having(BaseQueryBuilder.java:178) at org.infinispan.query.dsl.impl.BaseQueryBuilder.having(BaseQueryBuilder.java:188) at org.infinispan.query.dsl.embedded.QueryDslConditionsTest.testCustomQueryBuilding(QueryDslConditionsTest.java:2180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84) at org.testng.internal.Invoker.invokeMethod(Invoker.java:714) at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901) at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231) at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111) at org.testng.TestRunner.privateRun(TestRunner.java:767) at org.testng.TestRunner.run(TestRunner.java:617) at org.testng.SuiteRunner.runTest(SuiteRunner.java:348) at org.testng.SuiteRunner.access$000(SuiteRunner.java:38) at org.testng.SuiteRunner$SuiteWorker.run(SuiteRunner.java:382) at org.testng.internal.thread.ThreadUtil$2.call(ThreadUtil.java:64) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)