This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch GROOVY_2_5_X
in repository https://gitbox.apache.org/repos/asf/groovy.git

commit c862f97f9f8e0cfdd427e74a8e6f16659cbe35f1
Author: Paul King <pa...@asert.com.au>
AuthorDate: Sat Mar 16 13:33:55 2019 +1000

    GROOVY-9037: adjust java grammar to partially understand "default" in 
interfaces (just enough to keep groovydoc processing of java files happy)
---
 src/main/antlr2/org/codehaus/groovy/antlr/java/java.g | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/main/antlr2/org/codehaus/groovy/antlr/java/java.g 
b/src/main/antlr2/org/codehaus/groovy/antlr/java/java.g
index 4bb2128..dd7b244 100644
--- a/src/main/antlr2/org/codehaus/groovy/antlr/java/java.g
+++ b/src/main/antlr2/org/codehaus/groovy/antlr/java/java.g
@@ -897,6 +897,7 @@ interfaceField!    {Token first = LT(1);}
                        // This is not allowed for variable definitions, but 
this production
                        // allows it, a semantic check could be used if you 
want a more strict
                        // grammar.
+                       ("default"!)?          // just to keep groovydoc 
parsing happy
                        t:typeSpec[false]               // method or variable 
declaration(s)
                        (       IDENT                           // the name of 
the method
 

Reply via email to