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

Kevin Walls kevinw at openjdk.org
Thu Jul 10 07:58:00 UTC 2025


> 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

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/25856/files
  - new: https://git.openjdk.org/jdk/pull/25856/files/a2a28dde..7d3728d4

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=25856&range=05
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=25856&range=04-05

  Stats: 6 lines in 1 file changed: 3 ins; 0 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/25856.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/25856/head:pull/25856

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


More information about the jmx-dev mailing list