jmx-dev RFR: 8359809: AttributeList, RoleList and UnresolvedRoleList should never accept other types of Object [v4]
Kevin Walls
kevinw at openjdk.org
Mon Jun 30 17:31:53 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 one additional commit since the last revision:
Test update, over listIterator and iterator.set()
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/25856/files
- new: https://git.openjdk.org/jdk/pull/25856/files/ab4fef2f..8b36d3e5
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=25856&range=03
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=25856&range=02-03
Stats: 30 lines in 1 file changed: 12 ins; 2 del; 16 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