[jboss-jira] [JBoss JIRA] Commented: (JBRULES-3195) Incorrect and inconsistent errors for x.y and y.getY() in constraint expressions
Edson Tirelli (JIRA)
jira-events at lists.jboss.org
Fri Sep 2 08:24:26 EDT 2011
[ https://issues.jboss.org/browse/JBRULES-3195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12625995#comment-12625995 ]
Edson Tirelli commented on JBRULES-3195:
----------------------------------------
Hi Wolfgang, I sent the failing tests as a PR yesterday for Mike to fix it in MVEL.
https://github.com/mvel/mvel/pull/12
I will ping you when it is done.
> 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