A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pmd/pmd/issues/1842 below:

[java] Annotated module declarations cause parse error · Issue #1842 · pmd/pmd · GitHub

Module declarations may be annotated. Although the grammar explicitly tries to handle this,
the lookahead is not sufficient and when seeing an annotation, the TypeDeclaration branch is taken:

pmd/pmd-java/etc/grammar/Java.jjt

Lines 1609 to 1610 in fa91d47

( LOOKAHEAD(2) TypeDeclaration() ( EmptyStatement() )* )* [ LOOKAHEAD({isKeyword("open") || isKeyword("module") || getToken(1).kind == AT}) ModuleDeclaration() ( EmptyStatement() )* ]

This can be used as a test case:

@Deprecated(since = "11", forRemoval = true)
module jdk.pack {
}

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4