jmx-dev RFR: 8359809: AttributeList, RoleList and UnresolvedRoleList should never accept other types of Object [v6]

Serguei Spitsyn sspitsyn at openjdk.org
Thu Jul 10 15:12:39 UTC 2025


On Thu, 10 Jul 2025 07:58:00 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.
>
> Kevin Walls has updated the pull request incrementally with two additional commits since the last revision:
> 
>  - Test comment update
>  - Test comment update

It looks good to me now.

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

Marked as reviewed by sspitsyn (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/25856#pullrequestreview-3006173062


More information about the jmx-dev mailing list