-
Notifications
You must be signed in to change notification settings - Fork 482
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
Fields in a Serializable class must be transient or Serializable #2676
Labels
Comments
mheppler
added
the
Component: Code Infrastructure
formerly "Feature: Code Infrastructure"
label
Jan 28, 2016
pdurbin
added
Component: Documentation
Feature: Developer Guide
and removed
Component: Code Infrastructure
formerly "Feature: Code Infrastructure"
Status: Triaged
labels
Jun 21, 2017
Closing to consolidate into #3950. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
SonarQube found (as of commit a0bc225) 374 violations of the rule "Fields in a
Serializable
class should either betransient
or serializable", marking these violations as critical issues.Rationale:
I recognise the described J2EE application framework behaviour, as at times our DVN 3.6 installation, that also has plenty of violations like these, tries to serialise the
EntityManager
to disk and then complains in lots of log lines that it's not serializable.Serializable classes should also have a
private static final long serialVersionUID
, but that is only a 'minor' issue in SonarQube's default quality profile, not a critical one.The text was updated successfully, but these errors were encountered: