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

[java] MissingSerialVersionUID false-negative with abstract classes #1352

Closed
adangel opened this Issue Sep 17, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@adangel
Member

adangel commented Sep 17, 2018

Affects PMD Version: any

Rule: errorprone / MissingSerialVersionUID

Description:
As mentioned in #1350 and described in https://stackoverflow.com/questions/893259/should-an-abstract-class-have-a-serialversionuid abstract classes also should have a serialversionUID field.

Currently we ignore abstract classes which is wrong.

Code Sample demonstrating the issue:

import java.io.Serializable; 
public abstract class Foo implements Serializable { 
} 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment