]
Mario Fusco reassigned JBRULES-3195:
------------------------------------
Assignee: Mario Fusco (was: Edson Tirelli)
Incorrect and inconsistent errors for x.y and y.getY() in constraint
expressions
--------------------------------------------------------------------------------
Key: JBRULES-3195
URL:
https://issues.jboss.org/browse/JBRULES-3195
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: drools-compiler (expert)
Affects Versions: 5.3.0.Beta1
Reporter: Wolfgang Laun
Assignee: Mario Fusco
Fix For: 5.3.0.Final
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
--
This message is automatically generated by JIRA.
For more information on JIRA, see: