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

Build error with executable-model, multiple DRLs of the same package, mvel dialect

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • None
    • 7.16.0.Final
    • executable model
    • 2019 Week 02-04
    • Hide

      See unit test PR

      Show
      See unit test PR
    • NEW
    • NEW

    Description

      With the conditions:

      • Build by executable-model (-DgenerateModel=YES)
      • 2 DRL files of the same package
      • One DRL declares dialect "mvel" at package level
      • The other DRL uses mvel in RHS (not declares dialect explicitly)

      Rules in the latter DRL is parsed as "java" dialect hence results in the error.

      [ERROR] testMultiDrlWithSamePackageMvel[FLOW_DSL](org.drools.modelcompiler.MvelDialectTest)  Time elapsed: 1.185 s  <<< FAILURE!
      java.lang.AssertionError: 
      [Message [id=1, level=ERROR, path=src/main/java/org/pkg/Rules96a73300cc374c58aa6549f44675e57cRuleMethods0.java, line=36, column=15
         text=age has private access in org.drools.modelcompiler.domain.Person], Message [id=2, level=ERROR, path=src/main/java/org/pkg/Rules96a73300cc374c58aa6549f44675e57cRuleMethods0.java, line=0, column=0
         text=Java source of src/main/java/org/pkg/Rules96a73300cc374c58aa6549f44675e57cRuleMethods0.java in error:
      ...
      

      Attachments

        Issue Links

          Activity

            People

              lmolteni@redhat.com Luca Molteni
              rhn-support-tkobayas Toshiya Kobayashi
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: