JDK-8275338 : Add JFR events for notable serialization situations
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.io:serialization
  • Affected Version: 18
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-10-15
  • Updated: 2024-04-26
  • Resolved: 2024-01-18
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 23
23 b07Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
During serialization, the serialization mechanism may locate a serialization-related method on a user class, say, readObject, but not call the method since one or more aspects of the method are improperly declared, such as bad modifiers.

Such situations are likely unintended errors in the declaration of the methods and may cause surprising or unwanted behavior at runtime. JFR events for such situations could allow better debugging.
Comments
[~mullan] Absolutely. I have a draft that I will put here on JBS soon for review.
26-04-2024

[~rgiulietti] I think a release note would be useful for this new JFR event.
26-04-2024

Changeset: bfd2afe5 Author: Raffaello Giulietti <rgiulietti@openjdk.org> Date: 2024-01-18 17:05:35 +0000 URL: https://git.openjdk.org/jdk/commit/bfd2afe5adc315928fdedbfbe73049d8774400de
18-01-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/17129 Date: 2023-12-15 17:34:53 +0000
15-12-2023

Runtime analogue of some of the compile-time check done under JDK-8274335.
15-10-2021