-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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 #12681: removes serializable from violation and audit event #12675
Conversation
============ Notes from #4739 Serialization was added at d2af4ac#diff-52efb9bb7c26b577e3885a9539eac7d5R42 titled Apply parts of patch #1952556 fixing some FindBugs bugs. Thanks to Travis Schneeberger. http://git.net/ml/java.audit.checkstyle.devel/2008-04/msg00067.html Findbugs does produce this error if I remove the serialization:
This is because AuditEvent is serialized through inheritance of EventObject. ============ Now this is become why is It was added in 1d21af3 , 21 years ago, as the first cut. |
9ef4ef9
to
eb44747
Compare
Only failure is simple I like this solution more than swapping to From #4739
This is way for minimal effect. |
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:
eb44747
to
781f381
Compare
781f381
to
6ec49e8
Compare
6ec49e8
to
d38fec3
Compare
@romani ping |
I am confused by reference of this PR in second commit. I think we can use single issue to explain all reasons and all updates. |
Do you want me to combine both commits? 2nd commit was from CI failure on first commit. It is not a class mentioned in main issue, so I made it a second commit. |
@rnveach , how we can be confident that this is not HUGE breaking compatibility for Modules and for plugins in our organization ? it will drive bump of first or second digit in version. |
d38fec3
to
6c1242e
Compare
If you can tell me how this can break 3rd parties, then we should add a CI test to confirm. I can only go by what I think I know, but I know I have been wrong before and accidentally broke 3rd parties when it wasn't expected. https://github.com/sevntu-checkstyle/sevntu.checkstyle/blob/master/sevntu-checks/config/import-control.xml https://github.com/checkstyle/sonar-checkstyle/blob/master/config/import-control.xml We did change the location of the However, Sonar does not use this method and so can't be impacted if this did break compatibility. Even if we did break compatibility with Sonar, they always release a new JAR with every CS release and I don't think users are custom embedding new CS jars manually into Sonar or making 3rd parties on our 3rd party Sonar. https://github.com/sevntu-checkstyle/sevntu.checkstyle/tree/master/sevntu-checkstyle-sonar-plugin https://github.com/checkstyle/eclipse-cs/blob/783ad3c3b27c5c3956de788075d2c59366412767/net.sf.eclipsecs.core/src/net/sf/eclipsecs/core/builder/Auditor.java#L309 I did not see anyone accessing the Violation class directly, so it's change seem nominal. |
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 a lot for detailed reply.
I am ok to merge. we will update only second digit of our version as change should not affect if usage of our internals is not deep.
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 also agree with minor version bump only.
Minor item:
6c1242e
to
3c88831
Compare
@rnveach failure at https://checkstyle.semaphoreci.com/jobs/24484e3d-790b-4885-a873-161e1fb8d6ce is legit |
3c88831
to
1a31903
Compare
Fixed |
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.
Good to merge as CI passes. xwiki failure is not related to this PR.
Issue #12681
We have comments for this class that even say we do no serialize it.