Uploaded image for project: 'Red Hat Decision Manager'
  1. Red Hat Decision Manager
  2. RHDM-2027

Wrong exec model generation of consequence when using 2 classes with same names in different packages

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 7.13.5.GA
    • BRE
    • False
    • None
    • False
    • Workaround Exists
    • Hide

      build with system property "-Ddrools.parallelRulesBuildThreshold=-1"
      (disable parallel building by multi-threads)

      Show
      build with system property "-Ddrools.parallelRulesBuildThreshold=-1" (disable parallel building by multi-threads)
    • Hide

      extract attached reproducer archive and then run the script named 'run_mvn' .
      It will fail sometimes with Type mismatch error, but sometimes not.

      Show
      extract attached reproducer archive and then run the script named 'run_mvn' . It will fail sometimes with Type mismatch error, but sometimes not.

      When the following conditions are all met

      • use of mvel dialect
      • enough rules to trigger parallel exec model generation
      • 2 classes with same names in different packages are used in the same consequence

      the exec model generation may fail attributing the wrong fully qualified name to one of those 2 classes and results in build error with Type mismatch like the following:

      [ERROR] Failed to execute goal org.kie:kie-maven-plugin:7.67.0.Final-redhat-00029:generateModel (default-generateModel) on project reproducer: Execution default-generateModel of goal org.kie:kie-maven-plugin:7.67.0.Final-redhat-00029:generateModel failed: [com/example/reproducer/P52/LambdaConsequence52DC06F4594238D7EBF113B3FC28F645.java (27:1037) : Type mismatch: cannot convert from com.example.reproducer.domainfirst.Pojo to com.example.reproducer.domainsecond.Pojo] -> [Help 1]
      
      

              mfusco@redhat.com Mario Fusco
              rhn-support-hmiura Hiroko Miura
              Daniel Rosa Daniel Rosa
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: