[
https://issues.apache.org/jira/browse/JEXL-288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17159024#comment-17159024
]
Henri Biestro commented on JEXL-288:
------------------------------------
Changeset: 8f5fd67884e6880c0062392d662fc62f0fc946e7
Author: henrib <[email protected]>
Date: 2020-07-16 10:53
Message: JEXL-288: public class exposing annotated statement call, various
final nitpicks
> 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
> Assignee: Henri Biestro
> Priority: Major
> Fix For: 3.2
>
>
> 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
(v8.3.4#803005)