JDK-8231427 : Warning cleanup in tests of java.io.Serializable
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.io:serialization
  • Affected Version: 14
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2019-09-24
  • Updated: 2024-07-15
  • Resolved: 2019-10-11
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 14
11.0.25-oracleFixed 14 b19Fixed
Related Reports
Relates :  
Description
The test in jdk/java/io/Serializable have quite a few warnings:
- for raw types, 
- "C" syntax for array declarations, 
- missing serialVersionUIDs or wrong modifiers, 
- use of deprecated method such as new Integer(n), Class.newInstance, et.
- Suppressing warnings for serial related uses that are intention because they are being tested.
- missing hashCode() methods even when equals() is declared.


And a copy/paste error in ArraysOfArrays that did not properly test arrays of any type other than byte[][].

Comments
A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk11u-dev/pull/2825 Date: 2024-06-28 06:32:49 +0000
09-07-2024

Fix request [11u] I backport this for parity with 11.0.25-oracle. No risk, only tests change. Clean backport. SAP nightly testing passed.
03-07-2024

URL: https://hg.openjdk.java.net/jdk/jdk/rev/baa5969ecf34 User: rriggs Date: 2019-10-11 17:13:43 +0000
11-10-2019