-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Open
Description
The ManyStringsConcat.java example brings to light a large max-k when parsing a classBodyDeclaration
for the input starting at @ApiModelProperty(value...
. The decision that AdaptivePredict()
is trying to find is d=39
.
The definition of classBodyDeclaration
, which is loosely derived from the JLS 24, is the following.
grammars-v4/java/java/JavaParser.g4
Lines 142 to 146 in a5754dd
classBodyDeclaration | |
: ';' | |
| STATIC? block | |
| modifier* memberDeclaration | |
; |
The parser requires 3611 tokens to resolve the decision, and accounts for the majority of the time to parse the file.
Reading the source code of the javac parser, we see that this is not the grammar that the parser implements.
Metadata
Metadata
Assignees
Labels
No labels