javax.management classes AttributeList, 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.

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

Commit messages:
 - test/jdk/javax/management/generified/ListTypeCheckTest.java

Changes: https://git.openjdk.org/jdk/pull/25856/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=25856&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8359809
  Stats: 257 lines in 5 files changed: 42 ins; 164 del; 51 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

Reply via email to