[jboss-jira] [JBoss JIRA] Updated: (JBRULES-3195) Incorrect and inconsistent errors for x.y and y.getY() in constraint expressions
Wolfgang Laun (JIRA)
jira-events at lists.jboss.org
Fri Sep 2 03:23:26 EDT 2011
[ https://issues.jboss.org/browse/JBRULES-3195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wolfgang Laun updated JBRULES-3195:
-----------------------------------
Assignee: Edson Tirelli (was: Mark Proctor)
Fix Version/s: 5.3.0.CR1
Affects Version/s: 5.3.0.Beta1
Description:
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
Component/s: drools-compiler (expert)
> 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: Edson Tirelli
> Fix For: 5.3.0.CR1
>
>
> 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: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list