Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-5974

TemporalOperatorTest.testComparisonWithLocalDateAndLiteral error with exec-model

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.50.0.Final
    • 7.49.0.Final
    • executable model
    • None
    • 2021 Week 04-06 (from Jan 25)
    • 3
    • Undefined
    • NEW
    • NEW
    • ---
    • ---

    Description

      When exec-model is enabled, TemporalOperatorTest.testComparisonWithLocalDateAndLiteral() and testComparisonWithLocalDateTimeAndLiteral() fails with

      [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;
      ...
      

      Attachments

        Issue Links

          Activity

            People

              rhn-support-tkobayas Toshiya Kobayashi
              rhn-support-tkobayas Toshiya Kobayashi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: