8202056: Expand serial warning to check for bad overloads of serial-related methods and ineffectual fields

8160675: Issue lint warning for non-serializable non-transient instance fields in serializable type

Reviewed-by: erikj, sspitsyn, jlahoda, vromero, rriggs, smarks
This commit is contained in:
Joe Darcy 2021-10-21 21:11:01 +00:00
parent 4e9dd4bddb
commit 6a466fe7ae
46 changed files with 1928 additions and 70 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -93,6 +93,7 @@ public class JavapTask implements DisassemblerTool.DisassemblerTask, Messages {
}
final String key;
@SuppressWarnings("serial") // Array component type is not Serializable
final Object[] args;
boolean showUsage;
}