[jboss-jira] [JBoss JIRA] (DROOLS-1189) Parser error doesn't point at the problematic line in case of extra double quote
Toshiya Kobayashi (JIRA)
issues at jboss.org
Tue May 24 03:44:00 EDT 2016
[ https://issues.jboss.org/browse/DROOLS-1189?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Toshiya Kobayashi updated DROOLS-1189:
--------------------------------------
Steps to Reproduce: See https://github.com/droolsjbpm/drools/pull/794
> Parser error doesn't point at the problematic line in case of extra double quote
> --------------------------------------------------------------------------------
>
> Key: DROOLS-1189
> URL: https://issues.jboss.org/browse/DROOLS-1189
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 6.4.0.Final
> Reporter: Toshiya Kobayashi
> Assignee: Mario Fusco
> Priority: Minor
>
> If you have a rule which wrongly has an extra double quote,
> {noformat}
> rule "rule1"
> when
> then
> System.out.println("1"");
> end
>
> rule "rule2"
> when
> then
> System.out.println("2");
> end
>
> rule "rule3"
> when
> then
> System.out.println("3");
> end
> {noformat}
> Drools raises parser errors like this:
> {noformat}
> [20,0]: [ERR 102] Line 20:0 mismatched input ''
> [20,0]: [ERR 102] Line 20:0 mismatched input '<eof>' in rule "rule1"
> [0,0]: Parser returned a null Package
> {noformat}
> It doesn't point at the problematic line which actually contains the extra double quote. So it's difficult for users to find the root cause (Imagine you have bunch of rules generated by decision table).
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list