RFR: 8334165: Remove serialVersionUID compatibility logic from JMX [v3]
Daniel Fuchs
dfuchs at openjdk.org
Tue Sep 10 13:29:10 UTC 2024
On Tue, 10 Sep 2024 13:06:25 GMT, Kevin Walls <kevinw at openjdk.org> wrote:
>> Remove very very old serialization compatibility logic from JMX.
>>
>> This relates to keeping the JDK's JMX implementation compatible with JMX versions from when JMX was a separate component, before being integrated into JDK 5. It should all be removed.
>
> Kevin Walls has updated the pull request incrementally with one additional commit since the last revision:
>
> Remove a list level in Javadoc.
src/java.management/share/classes/javax/management/modelmbean/InvalidTargetObjectTypeException.java line 52:
> 50: {
> 51: private static final long serialVersionUID = 1190536278266811217L;
> 52: private static final ObjectStreamField[] serialPersistentFields =
The API doc comment for the serialized fields shouldhave been preserved.
Suggestion:
/**
* @serialField exception Exception Encapsulated {@link Exception}
*/
private static final ObjectStreamField[] serialPersistentFields =
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/20856#discussion_r1751967011
More information about the serviceability-dev
mailing list