-
Notifications
You must be signed in to change notification settings - Fork 585
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
SE_BAD_FIELD with records and spotbugs-4.8.4 #2935
Comments
Does it only happen for these two record fields? |
Yes, it's only those two, and the reported warnings would be correct, as all the referenced types are Serializable except SourceRepresentation and YangLibSubmodule (and YangLibSubmodule is again a record referencing SourceRepresetation) -- except neither YangLibModule nor YangLibSubmodule are marked as Serializable, which is very weird. |
Hum, there seems to be some kind of heuristic going on, SpotBugs does this test: |
fixed by #2962 |
A simple non-serializable record as available here: https://github.com/opendaylight/yangtools/blob/2e257731e354e6cc2fd45a6f6eec79bd01490c07/parser/yang-parser-api/src/main/java/org/opendaylight/yangtools/yang/parser/api/YangLibModule.java triggers:
with spotbugs-4.8.4. No warning is reported with spotbugs-4.8.3.
The text was updated successfully, but these errors were encountered: