jmx-dev Integrated: 8345079: Simplify/cleanup Exception handling in RMIConnectionImpl

Kevin Walls kevinw at openjdk.org
Tue Jan 21 17:25:48 UTC 2025


On Mon, 13 Jan 2025 13:56:54 GMT, Kevin Walls <kevinw at openjdk.org> wrote:

> This is a post-SecurityManager-removal cleanup, following-on from:
> 
> 8344394: Remove SecurityManager and related calls from java.management.rmi 
> 
> 
> Remove mention of "privilege" in Exception handling in RMIConnectionImpl.
> Remove wrapping of Exceptions in PrivilegedActionException.
> 
> The methods that invoke an operation handle expected Exceptions, but also need to handle SecurityException and RuntimeException, to avoid their default case of wrapping an Exception in an IOException to signal a problem.

This pull request has now been integrated.

Changeset: 3d4afc49
Author:    Kevin Walls <kevinw at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/3d4afc492ac3054fe2bd10f0a76635a613f31033
Stats:     190 lines in 1 file changed: 49 ins; 60 del; 81 mod

8345079: Simplify/cleanup Exception handling in RMIConnectionImpl

Reviewed-by: dfuchs

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

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


More information about the jmx-dev mailing list