-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Update Security Libraries to New Codesnippet Tooling #25441
Update Security Libraries to New Codesnippet Tooling #25441
Conversation
<javadocDoclet></javadocDoclet> | ||
<javadocDocletOptions></javadocDocletOptions> |
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.
Having empty tags seems a bit odd and is done in almost all libraries. Can we invert this pattern where libraries having a non-empty value would override what's in parent pom? (Of course, this might be easier after majority of the libraries have migrated to the new tool)
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.
These empty lines will go away once the codesnippet tooling transition is complete. They're empty as the configuration in the parent POM is to enable the previous codesnippet doclet and this empty configuration disables it.
/** | ||
* Algorithm. | ||
*/ |
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.
Was this enforced by the javadoc plugin?
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.
Yes, I believe something changed where all fields in a serializable class need to have Javadocs
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.
This is a private field and requiring javadocs on private fields can become tedious. Is there a way to turn this off while generating javadocs?
@@ -85,7 +84,7 @@ private static Path getConfiguredKeyStorePath() { | |||
|
|||
@SuppressWarnings("removal") | |||
private static String privilegedGetProperty(String theProp, String defaultVal) { | |||
return AccessController.doPrivileged( | |||
return java.security.AccessController.doPrivileged( |
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.
Changes to this file can be reverted.
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.
So, this is a compiler warning fix for Java 17. Apparently when you suppress warnings for removal
, or anything, on the class it doesn't cover import statements and import statements can't be annotated with SuppressWarnings
. Making the usage of the class fully-qualified allows for the method to suppress the warning and fix the compilation warning.
/check-enforcer override |
Test was failing due to a known issue #25422 |
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 see this is already merged, just left a couple comments :)
<javadocDoclet></javadocDoclet> | ||
<javadocDocletOptions></javadocDocletOptions> |
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.
Any particular reason we add these empty properties?
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.
These empty lines will go away once the codesnippet tooling transition is complete. They're empty as the configuration in the parent POM is to enable the previous codesnippet doclet and this empty configuration disables it.
<codesnippet.skip>false</codesnippet.skip> | ||
<javadocDoclet></javadocDoclet> | ||
<javadocDocletOptions></javadocDocletOptions> |
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.
Do we need this in this project or other perf projects if we are not going to make use of the codesnippets tool in it?
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.
Until the previous codesnippet tooling is replaced, yes as it will still attempt to run during Javadoc generation
Description
Fixes #7154
Fixes #23845
Fixes #24975
Fixes #24976
Fixes #24977
Fixes #24978
Fixes #24979
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines