[jboss-jira] [JBoss JIRA] Commented: (JBRULES-2041) .drl file ending in a single line comment w/o EOL not accepted
Edson Tirelli (JIRA)
jira-events at lists.jboss.org
Tue Apr 7 19:10:22 EDT 2009
[ https://jira.jboss.org/jira/browse/JBRULES-2041?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12461122#action_12461122 ]
Edson Tirelli commented on JBRULES-2041:
----------------------------------------
Hi Wolfgang,
I am trying to reproduce this problem with current trunk, but I am unable to. My test file looks like this:
-------------------- BEGIN ---------------------
#### a comment
// another comment
package org.drools
// another comment
# ### one more
rule "test something"
when
p: Person( street == "Low" && sss[1] == 234 )
then
end
# comment in the last line without EOL
-------------------- END --------------------------
Note that there is no EOL in the comment in the last line. Any tip on reproducing the problem?
Thanks,
Edson
> .drl file ending in a single line comment w/o EOL not accepted
> --------------------------------------------------------------
>
> Key: JBRULES-2041
> URL: https://jira.jboss.org/jira/browse/JBRULES-2041
> Project: JBoss Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: drools-compiler (expert)
> Affects Versions: 5.0.0.CR1
> Reporter: Wolfgang Laun
> Assignee: Edson Tirelli
> Fix For: 5.0.0.GA
>
>
> If the last line on some .drl file is a single line comment without EOL the compiler reports an error:
> Error message:
> [103,7]: [ERR 101] Line 103:7 no viable alternative at input ''
> I guess the DRL.g will have to provide the alternative (EOL|EOF) in both STYLE_SINGLE_LINE_COMMENT rules.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list