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

Compilation failure using null safe dereferencing and memberOf together

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 5.5.1.Final, 6.0.0.Alpha9
    • None
    • None
    • None

      Having a pattern like:

      Attribute( this memberOf $atts || this memberOf $seq!.particle )
      

      where $atts is bound to a list property and $seq.particle is also a list property. $seq may be null, hence the !. accessor, the compiler produces the following failure

      Unable to Analyse Expression
      $atts contains this || $seq.particle contains $seq != null && this

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

              Created:
              Updated:
              Resolved: