[jboss-jira] [JBoss JIRA] Closed: (JBRULES-876) Single line comments are capturing and removing newline chars in rules consequence

Edson Tirelli (JIRA) jira-events at lists.jboss.org
Wed Jun 6 16:43:08 EDT 2007


     [ http://jira.jboss.com/jira/browse/JBRULES-876?page=all ]

Edson Tirelli closed JBRULES-876.
---------------------------------

    Fix Version/s:  4.0.0.MR3
       Resolution: Done

Parser is now preserving the comments in RHS, but replaces comments started with '#' by '//' to keep them java compatible.


> Single line comments are capturing and removing newline chars in rules consequence
> ----------------------------------------------------------------------------------
>
>                 Key: JBRULES-876
>                 URL: http://jira.jboss.com/jira/browse/JBRULES-876
>             Project: JBoss Rules
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Drl Parser/Builder
>    Affects Versions: 4.0.0.MR2
>            Reporter: Michael Neale
>         Assigned To: Edson Tirelli
>            Priority: Minor
>             Fix For:  4.0.0.MR3
>
>
> Using the // and # style single line comments strips out the newline character in the RHS of a rule in the DRL.g parser.
> This can be a problem for tooling, and confusing with line numbering inside the consequence. 
> It also mucks up MVEL with optional ";" as newlines can also delimit an expression. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list