-
Couldn't load subscription status.
- Fork 9.1k
HADOOP-19725. [JDK17] Upgrade SpotBugs Version to Support JDK 17 Compilation. #8028
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
Conversation
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.
+1,LGTM @slfan1989
|
💔 -1 overall
This message was automatically generated. |
|
I have completed the investigation of the mvnsite build issues and confirmed that the problem is related to the JDIFF module. We plan to submit a separate PR to fix and optimize this issue. |
|
@steveloughran Could you please review this PR? Thank you very much! |
|
@Hexiaoqiao Could you please review this PR? Thank you very much! |
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.
@slfan1989 , thanks for working on this! Please see the comments inlined.
pom.xml
Outdated
| <dependency-check-maven.version>7.1.1</dependency-check-maven.version> | ||
| <spotbugs.version>4.2.2</spotbugs.version> | ||
| <spotbugs-maven-plugin.version>4.2.0</spotbugs-maven-plugin.version> | ||
| <spotbugs.version>4.8.3</spotbugs.version> |
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.
Why not 4.9.7 (or 4.8.6)?
https://mvnrepository.com/artifact/com.github.spotbugs/spotbugs
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.
Thank you for reviewing! You made a very good point — I’ll update this PR accordingly.
pom.xml
Outdated
| <spotbugs.version>4.2.2</spotbugs.version> | ||
| <spotbugs-maven-plugin.version>4.2.0</spotbugs-maven-plugin.version> | ||
| <spotbugs.version>4.8.3</spotbugs.version> | ||
| <spotbugs-maven-plugin.version>4.7.3.6</spotbugs-maven-plugin.version> |
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.
Similarly, why not 4.9.7.0 (or 4.8.6.7)?
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.
+1 the change looks good.
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.
LGTM
+1
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.
Thanks @slfan1989 . LGTM. +1. I think it is smooth after check spotbug release changes and other apache projects upgrade feedbacks. TBH, I am not check it with new JDK version carefully.
|
💔 -1 overall
This message was automatically generated. |
@Hexiaoqiao Many thanks for reviewing the code! The new Sputbug plugin has been tested on JDK 17 and JDK 21 and works properly. |
|
@szetszwo @steveloughran @Hexiaoqiao @zhtttylz Thank you very much for reviewing the code! |
Description of PR
JIRA: HADOOP-19725. [JDK17] Upgrade SpotBugs Version to Support JDK 17 Compilation.
The error in sputbug is currently caused by incompatibility with JDK 17.
We upgraded
spotbugs.versionfrom 4.2.2 to 4.8.3, andspotbugs-maven-plugin.versionfrom 4.2.0 to 4.7.3.6.How was this patch tested?
CI.
For code changes:
LICENSE,LICENSE-binary,NOTICE-binaryfiles?