[
https://issues.jboss.org/browse/DROOLS-1623?page=com.atlassian.jira.plugi...
]
Christian Lowe updated DROOLS-1623:
-----------------------------------
Description:
Introduced in [this
commit|https://github.com/kiegroup/drools/commit/0bd98541b3177bdc7d0e1f5f...],
A condition in the "when" section of a drt file, which begins with the word
package, such as:
{code:mvel}
$box: Box (
packageName == $productPackageName,
)
{code}
... will cause an error:
{code:java}
org.drools.template.parser.DecisionTableParseException: Missing header
at
org.drools.template.parser.DefaultTemplateContainer.parseTemplate(DefaultTemplateContainer.java:127)
.......
{code}
Previously, the parsing logic would only look for unindented keywords. Now,
DefaultTemplateContainer will trim the line, see that it starts with the word
"package," and error out.
was:
Introduced in commit ___,
A condition in the "when" section of a drt file, which begins with the word
package, such as:
{code:mvel}
$box: Box (
packageName == $productPackageName,
)
{code}
... will cause an error:
{code:java}
org.drools.template.parser.DecisionTableParseException: Missing header
at
org.drools.template.parser.DefaultTemplateContainer.parseTemplate(DefaultTemplateContainer.java:127)
.......
{code}
Inappropriate "Missing Header" DecisionTableParseException
----------------------------------------------------------
Key: DROOLS-1623
URL:
https://issues.jboss.org/browse/DROOLS-1623
Project: Drools
Issue Type: Bug
Reporter: Christian Lowe
Assignee: Edson Tirelli
Introduced in [this
commit|https://github.com/kiegroup/drools/commit/0bd98541b3177bdc7d0e1f5f...],
A condition in the "when" section of a drt file, which begins with the word
package, such as:
{code:mvel}
$box: Box (
packageName == $productPackageName,
)
{code}
... will cause an error:
{code:java}
org.drools.template.parser.DecisionTableParseException: Missing header
at
org.drools.template.parser.DefaultTemplateContainer.parseTemplate(DefaultTemplateContainer.java:127)
.......
{code}
Previously, the parsing logic would only look for unindented keywords. Now,
DefaultTemplateContainer will trim the line, see that it starts with the word
"package," and error out.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)