RFR: 8359809: AttributeList, RoleList and UnresolvedRoleList should never accept other types of Object [v3]
Kevin Walls
kevinw at openjdk.org
Mon Jun 30 13:08:28 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 with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains five additional commits since the last revision:
- (C)
- Merge remote-tracking branch 'upstream/master' into 8359809_AttributeList_stricter
- fewer checkTypeSafe calls in RoleList and RoleUnresolvedList
- Merge remote-tracking branch 'upstream/master' into 8359809_AttributeList_stricter
- test/jdk/javax/management/generified/ListTypeCheckTest.java
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/25856/files
- new: https://git.openjdk.org/jdk/pull/25856/files/afb05434..ab4fef2f
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=25856&range=02
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=25856&range=01-02
Stats: 7783 lines in 366 files changed: 3782 ins; 2576 del; 1425 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 serviceability-dev
mailing list