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

Executable model silently ignores a malformed modify statement

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • None
    • None
    • None
    • None
    • 2020 Week 16-18 (from Apr 13)
    • NEW
    • NEW

    Description

      Normally a modify should be written like

      modify($p) { setName("Mark") }
      

      and in fact in drl if you try to use the name of the modifed variable also inside the modify block like in

      modify($p) { $p.setName("Mark") }
      

      it emits a compile time error. Conversely the executable model generator just ignores the modify statement and generates a model without it which is misleading. It has to also emit a compile time error.

      Attachments

        Issue Links

          Activity

            People

              mfusco@redhat.com Mario Fusco
              mfusco@redhat.com Mario Fusco
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: