[jira] [Updated] (JEXL-288) Annotation can not be specified for a standalone statement

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (JEXL-288) Annotation can not be specified for a standalone statement

JIRA jira@apache.org

     [ https://issues.apache.org/jira/browse/JEXL-288?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henri Biestro updated JEXL-288:
-------------------------------
    Issue Type: Improvement  (was: Bug)

> Annotation can not be specified for a standalone statement
> ----------------------------------------------------------
>
>                 Key: JEXL-288
>                 URL: https://issues.apache.org/jira/browse/JEXL-288
>             Project: Commons JEXL
>          Issue Type: Improvement
>    Affects Versions: 3.1
>            Reporter: Dmitri Blinov
>            Priority: Major
>
> It is expected that the following code
> {code:java}
> @Annotation while (true) {}
> {code}
> should be successfully parsed as the code below
> {code:java}
> @Annotation {while (true) {}}
> {code}
> The suggestion is to change the grammar for the annotated statement from
> {code:java}
> void AnnotatedStatement() #AnnotatedStatement() : {}
>  {
>     (LOOKAHEAD(<ANNOTATION>) Annotation())+ (LOOKAHEAD(<VAR>) Var() | LOOKAHEAD(1) Block() | Expression())
>  }
> {code}
> to
> {code:java}
> void AnnotatedStatement() #AnnotatedStatement() : {}
>  {
>     (LOOKAHEAD(<ANNOTATION>) Annotation())+ (LOOKAHEAD(1) Block() | Statement())
>  }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)