'Eclipse stops generating new serialVersionUID numbers after introducing either inheritance or generics to the class. Is there a fix?
I have a custom exception class that extends a parent exception class. I also use generics in my constructor, but not on my exceptions, because exceptions cannot be generic. Ever since I did the inheritance/generics part, I have tried to generate new serialVersionUID numbers, but it keeps generating the same values in said classes, both parent and child. SpotBugs/Sonar keeps complaining that my class "defines a computed serialUID that doesn't equate to the calculated value". Has anyone ever faced a similar problem and is there a fix for it?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
