[
https://issues.redhat.com/browse/DROOLS-5974?page=com.atlassian.jira.plug...
]
Toshiya Kobayashi updated DROOLS-5974:
--------------------------------------
Description:
When exec-model is enabled, TemporalOperatorTest.testComparisonWithLocalDateAndLiteral()
and testComparisonWithLocalDateTimeAndLiteral() fails with
{noformat}
[ERROR]
TemporalOperatorTest.testComparisonWithLocalDateAndLiteral:201->checkConstantTemporalConstraint:218
[[Message [id=1, level=ERROR,
path=src/main/java/defaultpkg/Rules3720416353E1D657058FA25088C64AC0RuleMethods0.java,
line=19, column=81
text=method alphaIndexedBy in class org.drools.model.PatternDSL cannot be applied to
given types;
required:
java.lang.Class<U>,org.drools.model.Index.ConstraintType,int,org.drools.model.functions.Function1<T,U>,U
found:
java.lang.Class<java.time.LocalDateTime>,org.drools.model.Index.ConstraintType,int,defaultpkg.PD7.LambdaExtractorD759DE2BBA2992B5101D6828C6AA5085,java.lang.String
reason: inference variable U has incompatible bounds
equality constraints: java.time.LocalDateTime
lower bounds: java.lang.String], Message [id=2, level=ERROR,
path=src/main/java/defaultpkg/Rules3720416353E1D657058FA25088C64AC0RuleMethods0.java,
line=0, column=0
text=Java source of
src/main/java/defaultpkg/Rules3720416353E1D657058FA25088C64AC0RuleMethods0.java in error:
package defaultpkg;
...
{noformat}
was:
When eec-model is enabled, TemporalOperatorTest.testComparisonWithLocalDateAndLiteral()
and testComparisonWithLocalDateTimeAndLiteral() fails with
{noformat}
[ERROR]
TemporalOperatorTest.testComparisonWithLocalDateAndLiteral:201->checkConstantTemporalConstraint:218
[[Message [id=1, level=ERROR,
path=src/main/java/defaultpkg/Rules3720416353E1D657058FA25088C64AC0RuleMethods0.java,
line=19, column=81
text=method alphaIndexedBy in class org.drools.model.PatternDSL cannot be applied to
given types;
required:
java.lang.Class<U>,org.drools.model.Index.ConstraintType,int,org.drools.model.functions.Function1<T,U>,U
found:
java.lang.Class<java.time.LocalDateTime>,org.drools.model.Index.ConstraintType,int,defaultpkg.PD7.LambdaExtractorD759DE2BBA2992B5101D6828C6AA5085,java.lang.String
reason: inference variable U has incompatible bounds
equality constraints: java.time.LocalDateTime
lower bounds: java.lang.String], Message [id=2, level=ERROR,
path=src/main/java/defaultpkg/Rules3720416353E1D657058FA25088C64AC0RuleMethods0.java,
line=0, column=0
text=Java source of
src/main/java/defaultpkg/Rules3720416353E1D657058FA25088C64AC0RuleMethods0.java in error:
package defaultpkg;
...
{noformat}
TemporalOperatorTest.testComparisonWithLocalDateAndLiteral error with
exec-model
--------------------------------------------------------------------------------
Key: DROOLS-5974
URL:
https://issues.redhat.com/browse/DROOLS-5974
Project: Drools
Issue Type: Bug
Components: executable model
Affects Versions: 7.49.0.Final
Reporter: Toshiya Kobayashi
Assignee: Toshiya Kobayashi
Priority: Major
When exec-model is enabled, TemporalOperatorTest.testComparisonWithLocalDateAndLiteral()
and testComparisonWithLocalDateTimeAndLiteral() fails with
{noformat}
[ERROR]
TemporalOperatorTest.testComparisonWithLocalDateAndLiteral:201->checkConstantTemporalConstraint:218
[[Message [id=1, level=ERROR,
path=src/main/java/defaultpkg/Rules3720416353E1D657058FA25088C64AC0RuleMethods0.java,
line=19, column=81
text=method alphaIndexedBy in class org.drools.model.PatternDSL cannot be applied to
given types;
required:
java.lang.Class<U>,org.drools.model.Index.ConstraintType,int,org.drools.model.functions.Function1<T,U>,U
found:
java.lang.Class<java.time.LocalDateTime>,org.drools.model.Index.ConstraintType,int,defaultpkg.PD7.LambdaExtractorD759DE2BBA2992B5101D6828C6AA5085,java.lang.String
reason: inference variable U has incompatible bounds
equality constraints: java.time.LocalDateTime
lower bounds: java.lang.String], Message [id=2, level=ERROR,
path=src/main/java/defaultpkg/Rules3720416353E1D657058FA25088C64AC0RuleMethods0.java,
line=0, column=0
text=Java source of
src/main/java/defaultpkg/Rules3720416353E1D657058FA25088C64AC0RuleMethods0.java in error:
package defaultpkg;
...
{noformat}
--
This message was sent by Atlassian Jira
(v8.13.1#813001)