[jboss-jira] [JBoss JIRA] Updated: (JBRULES-2986) Confusing error reporting due to incomplete constraint
Mark Proctor (JIRA)
jira-events at lists.jboss.org
Thu Sep 29 03:05:31 EDT 2011
[ https://issues.jboss.org/browse/JBRULES-2986?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Proctor updated JBRULES-2986:
----------------------------------
Assignee: Edson Tirelli (was: Mark Proctor)
> Confusing error reporting due to incomplete constraint
> ------------------------------------------------------
>
> Key: JBRULES-2986
> URL: https://issues.jboss.org/browse/JBRULES-2986
> Project: Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: drools-compiler (expert)
> Affects Versions: 5.2.0.CR1
> Reporter: Wolfgang Laun
> Assignee: Edson Tirelli
>
> declare Article
> artid : int;
> artname : String;
> custid : int;
> end
> declare Customer
> custid : int
> end
> rule "articles of a customer"
> when
> $c: Customer( $custid: custid )
> $a: Article( $artid, artname == ("mou" + "se"), $custid : custid == $custid )
> then
> end
> Produces many error messages (see below), where line number 1 and column numnber 1 are incorrect.
> Expect: only one error message, with correct line number.
> ====================================================================
> Unable to Analyse Expression $artid:
> [Error: Failed to compile: 2 compilation error(s):
> - (1,1) unable to resolve method using strict-mode: ex50.Article.$artid()
> - (1,1) unqualified type in strict mode for: $artid]
> [Near : {... $artid ....}]
> ^
> [Line: 1, Column: 1] : [Rule name='articles of a customer']
> Rule Compilation error : [Rule name='articles of a customer']
> ex50/Rule_articles_of_a_customer_0.java (14:690) : $artid cannot be resolved
> ====================================================================
--
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