On Mon, 5 Oct 2026 16:31:48 GMT, Kevin Walls <[email protected]> wrote:

> MBeanServer has a few methods called "deserialize", which are deprecated for 
> almost 22 years (and "since 1.5").
> The interface in MBeanServer.java implements these methods to throw 
> UnsupportedOperationException by default.
> 
> JmxMBeanServer implements deserialize methods to call an MBeanInstantiator.  
> These should be removed, and JmxMBeanServer will get the MBeanServer 
> behaviour (UOE).  MBeanInstantiator (an internal class) should throw UOE 
> directly.
> 
> There are no calls to these methods within the JDK or tests, except for one 
> test: ArrayClassTest.  This exists to fix JDK-4974913 and even back in 2004 
> this was known to be deprecated.  It should be updated to avoid the 
> deprecated method.
> 
> 
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

This pull request has now been integrated.

Changeset: a7199cec
Author:    Kevin Walls <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/a7199cecda712e207c4a44229fe74ea923aa9836
Stats:     213 lines in 3 files changed: 23 ins; 178 del; 12 mod

8393535: Remove implementations of deprecated MBeanServer method, and update 
ArrayClassTest

Reviewed-by: dfuchs

-------------

PR: https://git.openjdk.org/jdk/pull/33214

Reply via email to