apache / incubator-kie-drools

Drools is a rule engine, DMN engine and complex event processing (CEP) engine for Java.
http://www.drools.org
Apache License 2.0
5.88k stars 2.5k forks source link

[new-parser] Broken testIncompatibleListOnAccumulateFunction #5948

Closed yurloc closed 5 months ago

yurloc commented 6 months ago

Parent issue

Failing tests

Rule code snippet

rule R when
  $theFrom : String() from accumulate(MyPerson( $val : age );
                                          collectList( $val ) )
then
  list.add($theFrom);
end

Error output

Error messages were expected (not empty) but they were empty.

### parse : ANTLR4_PARSER_ENABLED = true

java.lang.AssertionError: 
Expecting actual not to be empty

    at org.drools.compiler.integrationtests.AccumulateTest.testIncompatibleListOnAccumulateFunction(AccumulateTest.java:3006)
tkobayas commented 6 months ago

/take

tkobayas commented 5 months ago

Fixed by https://github.com/apache/incubator-kie-drools/pull/5975