Uploaded image for project: 'JBoss Enterprise BRMS Platform 5'
  1. JBoss Enterprise BRMS Platform 5
  2. BRMS-579

Unable to build expression for 'from' if used generic types on collections

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Migrated to another ITS
    • Affects Version/s: 5.1.0 GA
    • Fix Version/s: BRMS 5.2.0.GA
    • Component/s: BRE
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      Run the project attached with BRMS 5.1 runtime

      Show
      Run the project attached with BRMS 5.1 runtime
    • Workaround Description:
      • Define as system property drools.dialect.mvel.strict=false

      Description

      Unable to build expression for 'from' if used generic types on collections.
      The exception (below) is fired:

      "Unable to build expression for 'from' : sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl cannot be cast to java.lang.Class 'input.payrollComponentsForNiLetter.entrySet' : [Rule name='Basic Pay for NI aggregation']

      java.lang.IllegalArgumentException: Could not parse knowledge.
      at com.sample.DroolsTest.readKnowledgeBase(DroolsTest.java:68)
      at com.sample.DroolsTest.main(DroolsTest.java:31)"

      The attached project demonstrates the error.
      The same is working on Drools 5.1.1 community

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                tsurdilovic Tihomir Surdilovic
                Reporter:
                alessandrolt Alessandro Lazarotti
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: