Closed badetitou closed 5 years ago
The problem is in
interface_modifiers_opt
: modifiers_opt
| default_modifier 'modifier'
;
This should be something like
interface_modifiers_opt
: (modifier 'modifier' | default_modifier 'modifier')*
;
I should rewrite the grammar to eliminate the _opt
and list productions by using the newer syntax.
Thanks a lot!
Hello, it is impossible to parse default method in Java inteface.
For example, it is possible de parse
But not
In the second example, I had the 'public' modifier. It is possible (see: https://docs.oracle.com/javase/tutorial/java/IandI/defaultmethods.html) in section "Static Methods"
I thought the error is probably there
But I need help to solve it
If someone has time?