[jboss-jira] [JBoss JIRA] (DROOLS-287) Rule names with non-alphabetic characters may lead to name clashes
Davide Sottara (JIRA)
jira-events at lists.jboss.org
Sun Oct 6 14:18:02 EDT 2013
[ https://issues.jboss.org/browse/DROOLS-287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12809651#comment-12809651 ]
Davide Sottara commented on DROOLS-287:
---------------------------------------
I agree. The solution currently implemented replaces illegal characters with underscores, and then uses an incrementing counter to resolve ambiguities.
But this would make it impossible to determine the name of the class from the name of the rule alone, which may be a problem in some case.
I'll see if this can be fixed easily
> Rule names with non-alphabetic characters may lead to name clashes
> ------------------------------------------------------------------
>
> Key: DROOLS-287
> URL: https://issues.jboss.org/browse/DROOLS-287
> Project: Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 5.5.0.Final, 6.0.0.CR4
> Reporter: Davide Sottara
> Assignee: Mark Proctor
> Priority: Critical
> Fix For: 5.5.1.Final, 6.0.0.CR5
>
>
> A KB with the two following rules will not compile:
> {code}
> rule "Rule_>"
> when then end
> rule "Rule_<"
> when then end
> {code}
> Here's a more realistic example:
> {code}
> rule "dollar > euro"
> when then end
> rule "dollar < euro"
> when then end
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list