Issue #8023: Update grammar for initial record support#8293
Issue #8023: Update grammar for initial record support#8293pbludov merged 2 commits intocheckstyle:masterfrom
Conversation
d77d8dc to
6e12ca7
Compare
...sources-noncompilable/com/puppycrawl/tools/checkstyle/grammar/java14/InputJava14Records.java
Show resolved
Hide resolved
src/main/resources/com/puppycrawl/tools/checkstyle/grammar/java.g
Outdated
Show resolved
Hide resolved
6e12ca7 to
114bc18
Compare
0449997 to
4ed9792
Compare
|
@nmancus1 FYI on how to hit the harder to reach exceptions: |
|
Execution time testing on guava with
Which gives an average time of 44.031s for |
@rnveach |
4ed9792 to
af2bd54
Compare
af2bd54 to
4ea08c6
Compare
a6ae552 to
20015f7
Compare
|
Can someone post the JLS link for records and how they specify the language? Also I notice this isn't full record support. Is there another issue defined that will house the full record support? |
See #8023 (comment) |
1b9932d to
1d7ea67
Compare
src/main/resources/com/puppycrawl/tools/checkstyle/grammar/java.g
Outdated
Show resolved
Hide resolved
src/main/resources/com/puppycrawl/tools/checkstyle/grammar/java.g
Outdated
Show resolved
Hide resolved
d3c25d6 to
d9dd24d
Compare
|
I think this is ok to merge when CI passes. @romani |
src/main/java/com/puppycrawl/tools/checkstyle/api/TokenTypes.java
Outdated
Show resolved
Hide resolved
src/main/resources/com/puppycrawl/tools/checkstyle/grammar/java.g
Outdated
Show resolved
Hide resolved
d9dd24d to
bef4f03
Compare
src/main/java/com/puppycrawl/tools/checkstyle/api/TokenTypes.java
Outdated
Show resolved
Hide resolved
bef4f03 to
7cc4ed5
Compare
|
there are conflicts, please rebase and prepare for merge. |
7cc4ed5 to
73deaaa
Compare
73deaaa to
153d969
Compare







Issue #8023: Update grammar for initial record support
TO DO:
Unit tests (including ASTRegressionTest after Issue #8023: Add input file for Java14 records #8290 is merged)
Modify grammar to avoid "record" in variable declaration:
checkstyle/src/test/resources-noncompilable/com/puppycrawl/tools/checkstyle/grammar/java14/InputJava14Records.java
Lines 103 to 104 in 2c33bb0
Modify grammar to handle no arg record constructor:
checkstyle/src/test/resources-noncompilable/com/puppycrawl/tools/checkstyle/grammar/java14/InputJava14Records.java
Lines 46 to 49 in 2c33bb0
Mentors, please feel free to edit this post to add more items in TODO, or reply and I will add them.