You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Java20Parser.g4's localVariableDeclaration rule (line 887), variableDeclaratorList is optional. The rule is based on Paragraph 14.4 of the Java 20 language specification, which does not specify variableDeclaratorList as optional.
Due to this, class Foo { void bar () { boolean; } }
successfully parses, although it violates the specification as a variableDeclaratorList is expected after the typeIdentifier (boolean).
The text was updated successfully, but these errors were encountered:
In Java20Parser.g4's localVariableDeclaration rule (line 887), variableDeclaratorList is optional. The rule is based on Paragraph 14.4 of the Java 20 language specification, which does not specify variableDeclaratorList as optional.
Due to this,
class Foo { void bar () { boolean; } }
successfully parses, although it violates the specification as a variableDeclaratorList is expected after the typeIdentifier (boolean).
The text was updated successfully, but these errors were encountered: