New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Record inside interface is treated as method #10978
Labels
Milestone
Comments
I reproduced problem.
so nested record is parsed as method def. Is there any way to fix parser for this case? It can be fixed in check but it doesnt feel like a right thing to do. |
Better to fix AST, but until last is bad Check can have hack workaround |
nrmancuso
added a commit
to nrmancuso/checkstyle
that referenced
this issue
Nov 26, 2021
nrmancuso
added a commit
to nrmancuso/checkstyle
that referenced
this issue
Nov 26, 2021
romani
pushed a commit
that referenced
this issue
Nov 27, 2021
I placed breaking compatibility just warn user who created custom Check during last 2 years. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have read check documentation: https://checkstyle.org/config_naming.html#MethodName
I have downloaded the latest checkstyle from: https://checkstyle.org/cmdline.html#Download_and_Run
I have executed the cli and showed it below, as cli describes the problem better than 1,000 words
Expected no errors, but the name of the record is marked as an illegal method name.
If
interface Test
is replaced withclass Test
then the check goes through without errors.The text was updated successfully, but these errors were encountered: