]
Toshiya Kobayashi updated DROOLS-1189:
--------------------------------------
Steps to Reproduce: See
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).