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

Kevin Walls kevinw at openjdk.org
Tue Jul 1 08:52:56 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:

 - Further doc update
 - Test udpate (listIterator)

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

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

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

  Stats: 17 lines in 4 files changed: 14 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