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?

0

There are 0 best solutions below