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
Issue #11807: fixes exception on records and fields in RequireThis #12471
Conversation
result = true; | ||
break; | ||
final DetailAST parent = member.getParent(); | ||
if (parent.getType() != TokenTypes.RECORD_COMPONENT_DEF) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't fully sure, but I assume this RECORD_COMPONENT_DEF
is not a final field by default?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
record components are implicitly final
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Edit: It seems this code isn't correct. I will try to fix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code should be "fixed" now.
Regression: http://rveach.no-ip.org:81/checkstyle/regression/317/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Items
...crawl/tools/checkstyle/checks/coding/requirethis/InputRequireThisRecordsWithCheckFields.java
Outdated
Show resolved
Hide resolved
...crawl/tools/checkstyle/checks/coding/requirethis/InputRequireThisRecordsWithCheckFields.java
Outdated
Show resolved
Hide resolved
It would be a good idea to run check regression over the projects file that found the NPE: https://github.com/checkstyle/contribution/blob/master/checkstyle-tester/latest-projects-to-test-on.properties. The older project file has projects that have little or no record usage. |
f5105f5
to
1196640
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Item:
...crawl/tools/checkstyle/checks/coding/requirethis/InputRequireThisRecordsWithCheckFields.java
Show resolved
Hide resolved
Regression: http://rveach.no-ip.org:81/checkstyle/regression/318/ Only 1 difference, no new violation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Compilation is failing on input files.
Item:
Issue #11807