jmx-dev Integrated: 8359809: AttributeList, RoleList and UnresolvedRoleList should never accept other types of Object
Kevin Walls
kevinw at openjdk.org
Thu Jul 10 15:23:52 UTC 2025
On Tue, 17 Jun 2025 16:54:15 GMT, Kevin Walls <kevinw at openjdk.org> wrote:
> The classes javax.management.AttributeList, and javax.management.relation.RoleList and UnresolvedRoleList, have a historical feature where they accept objects of the wrong type, and only check for wrong objects when the "asList()" method is called.
>
> This feature should be removed, and these classes should never accept the wrong kind of Object.
This pull request has now been integrated.
Changeset: cbc7090b
Author: Kevin Walls <kevinw at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/cbc7090b91f4ce84117a04036028076373ab805e
Stats: 300 lines in 5 files changed: 68 ins; 171 del; 61 mod
8359809: AttributeList, RoleList and UnresolvedRoleList should never accept other types of Object
Reviewed-by: sspitsyn
-------------
PR: https://git.openjdk.org/jdk/pull/25856
More information about the jmx-dev
mailing list