Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-3195

Incorrect and inconsistent errors for x.y and y.getY() in constraint expressions

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      Parser flags space before/after dot incorrectly and inconsistently.
      The error message for $e is grossly misleading. The expected
      behaviour is to accept all of the 6 forms given below.

      declare Student
      name : String @key
      end

      rule "Subject grade points"
      when
      #OK $a : Student( $someStudent.name != null )
      #OK $b : Student( $someStudent .name != null )
      #BAD $c : Student( $someStudent. name != null )
      #OK $d : Student( $someStudent.getName() != null )
      #BAD $e : Student( $someStudent .getName() != null )
      #OK $f : Student( $someStudent. getName() != null )
      then
      end

            mfusco@redhat.com Mario Fusco
            laune Wolfgang Laun (Inactive)
            Archiver:
            rhn-support-ceverson Clark Everson

              Created:
              Updated:
              Resolved:
              Archived: