[JBoss JIRA] (DROOLS-5542) org.apache.maven.plugins:maven-compiler-plugin fails on the generated model
by Ciprian Chiru (Jira)
Ciprian Chiru created DROOLS-5542:
-------------------------------------
Summary: org.apache.maven.plugins:maven-compiler-plugin fails on the generated model
Key: DROOLS-5542
URL: https://issues.redhat.com/browse/DROOLS-5542
Project: Drools
Issue Type: Bug
Components: executable model
Affects Versions: 7.40.0.Final
Reporter: Ciprian Chiru
Assignee: Luca Molteni
Given a rule as such (modified from the standard example):
{code:java}
global org.example.drools.service.DummyService dummyService;
rule "will execute per each Measurement having ID color"
no-loop
when
Measurement( id == "color", $colorVal : val )
$var1: String() from dummyService.dummy("a");
$var2: String() from dummyService.dummy("b");
$var3: String() from dummyService.dummy("c");
String() from dummyService.dummy($var1, $var2, $var3)
then
controlSet.add($colorVal);
end{code}
The _org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile_ fails with:
{code:java}
no suitable method found for from(org.drools.model.Global<org.example.drools.service.DummyService>,org.drools.model.Variable<java.lang.String>,org.drools.model.Variable<java.lang.String>,org.drools.model.Variable<java.lang.String>,rules.PFD.LambdaExtractorFD1FA74D5FA8CFA329D97E34A42287FA)
[ERROR] method org.drools.model.DSL.<T>from(T) is not applicable
[ERROR] (cannot infer type-variable(s) T
[ERROR] (actual and formal argument lists differ in length))
[ERROR] method org.drools.model.DSL.<T>from(org.drools.model.Variable<T>) is not applicable
[ERROR] (cannot infer type-variable(s) T
[ERROR] (actual and formal argument lists differ in length))
[ERROR] method org.drools.model.DSL.<T>from(org.drools.model.functions.Function0<T>) is not applicable
[ERROR] (cannot infer type-variable(s) T
[ERROR] (actual and formal argument lists differ in length))
[ERROR] method org.drools.model.DSL.<T>from(org.drools.model.Variable<T>,org.drools.model.functions.Function1<T,?>) is not applicable
[ERROR] (cannot infer type-variable(s) T
[ERROR] (actual and formal argument lists differ in length))
[ERROR] method org.drools.model.DSL.<A,B>from(org.drools.model.Variable<A>,org.drools.model.Variable<B>,org.drools.model.functions.Function2<A,B,?>) is not applicable
[ERROR] (cannot infer type-variable(s) A,B
[ERROR] (actual and formal argument lists differ in length))
[ERROR] method org.drools.model.DSL.<A,B,C>from(org.drools.model.Variable<A>,org.drools.model.Variable<B>,org.drools.model.Variable<C>,org.drools.model.functions.Function3<A,B,C,?>) is not applicable
[ERROR] (cannot infer type-variable(s) A,B,C
[ERROR] (actual and formal argument lists differ in length)){code}
So the DSL.from() cannot accept more than 2 variables.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 9 months
[JBoss JIRA] (WFLY-13676) Increase the test coverage of jpa and jpa-distributed galleon layers
by Yeray Borges Santana (Jira)
[ https://issues.redhat.com/browse/WFLY-13676?page=com.atlassian.jira.plugi... ]
Yeray Borges Santana updated WFLY-13676:
----------------------------------------
Summary: Increase the test coverage of jpa and jpa-distributed galleon layers (was: Increase the test coverage of jpa and jpa-distribute galleon layers)
> Increase the test coverage of jpa and jpa-distributed galleon layers
> --------------------------------------------------------------------
>
> Key: WFLY-13676
> URL: https://issues.redhat.com/browse/WFLY-13676
> Project: WildFly
> Issue Type: Task
> Components: Build System, JPA / Hibernate, Test Suite
> Reporter: Yeray Borges Santana
> Assignee: Yeray Borges Santana
> Priority: Major
> Fix For: 21.0.0.Beta1
>
>
> These layers must be tested independently on testsuite/layers testsuite.
> These layers should also be tested in aggregation with one or more base layers it is expected to decorate, running the test with each of one separately.
> We have to add new Galleon provision execution to provision a server with a base layer provisioned with jpa or jpa-distributed and add a surefire execution to run suitable WildFly tests on them.
>
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 9 months
[JBoss JIRA] (DROOLS-5539) Review dmn examples version in codebase
by Matteo Mortari (Jira)
[ https://issues.redhat.com/browse/DROOLS-5539?page=com.atlassian.jira.plug... ]
Matteo Mortari updated DROOLS-5539:
-----------------------------------
Labels: core-team (was: )
Epic Name: Review dmn examples version in codebase
> Review dmn examples version in codebase
> ---------------------------------------
>
> Key: DROOLS-5539
> URL: https://issues.redhat.com/browse/DROOLS-5539
> Project: Drools
> Issue Type: Epic
> Components: dmn engine
> Reporter: Matteo Mortari
> Assignee: Matteo Mortari
> Priority: Major
> Labels: core-team
>
> *Motivation*: avoid a User might find *_easily_* an outdated version (DMN v1.1) in the examples from our codebase.
> *Goal*: review dmn examples version in codebase to make sure there are no "default" v1.1 model to be found, that are properly isolated in specific packages and/or specific test infrastructure.
> *Impacts*: kie-dmn codebase in drools.git and downstream repos to be assessed.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 9 months